Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1452,7 +1452,7 @@ |
1453 | 1453 | if( !is_null( $tooltip ) ) { |
1454 | 1454 | $attribs['title'] = wfMsg( 'editsectionhint', $tooltip ); |
1455 | 1455 | } |
1456 | | - $url = $this->link( $nt, wfMsg('editsection'), |
| 1456 | + $link = $this->link( $nt, wfMsg('editsection'), |
1457 | 1457 | $attribs, |
1458 | 1458 | array( 'action' => 'edit', 'section' => $section ), |
1459 | 1459 | array( 'noclasses', 'known' ) |
— | — | @@ -1466,19 +1466,19 @@ |
1467 | 1467 | $attribs = " title=\"$attribs\""; |
1468 | 1468 | } |
1469 | 1469 | $result = null; |
1470 | | - wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $attribs, $url, &$result ) ); |
| 1470 | + wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $attribs, $link, &$result ) ); |
1471 | 1471 | if( !is_null( $result ) ) { |
1472 | 1472 | # For reverse compatibility, add the brackets *after* the hook is |
1473 | 1473 | # run, and even add them to hook-provided text. (This is the main |
1474 | 1474 | # reason that the EditSectionLink hook is deprecated in favor of |
1475 | 1475 | # DoEditSectionLink: it can't change the brackets or the span.) |
1476 | | - $result = wfMsgHtml( 'editsection-brackets', $url ); |
| 1476 | + $result = wfMsgHtml( 'editsection-brackets', $result ); |
1477 | 1477 | return "<span class=\"editsection\">$result</span>"; |
1478 | 1478 | } |
1479 | 1479 | |
1480 | 1480 | # Add the brackets and the span, and *then* run the nice new hook, with |
1481 | 1481 | # clean and non-redundant arguments. |
1482 | | - $result = wfMsgHtml( 'editsection-brackets', $url ); |
| 1482 | + $result = wfMsgHtml( 'editsection-brackets', $link ); |
1483 | 1483 | $result = "<span class=\"editsection\">$result</span>"; |
1484 | 1484 | |
1485 | 1485 | wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result ) ); |