Index: Linker.php
===================================================================
--- Linker.php (revision 22712)
+++ Linker.php (working copy)
@@ -1062,9 +1062,16 @@
$title = Title::newFromText( $title );
$editurl = '§ion='.$section;
$url = $this->makeKnownLinkObj( $title, wfMsg('editsection'), 'action=edit'.$editurl );
-
- return "[".$url."]";
-
+###- return "[".$url."]";
+ /** Added editSectionLinkForOther hook that allows section/header link to be modified */
+ $result = null;
+ wfRunHooks( 'editSectionLinkForOther', array( &$this, $title, $section , $url, &$result) );
+ if ( $result == null ) {
+ return "[".$url."]";
+ } else {
+ return ($result);
+ }
+ /** End of hook */
}
/**
@@ -1078,8 +1085,15 @@
$editurl = '§ion='.$section;
$hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"';
$url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint );
-
- return "[".$url."]";
+### - return "[".$url."]";
+ /** Added editSectionLink hook that allows section/header link to be modified */
+ wfRunHooks( 'editSectionLink', array( &$this, $nt, $section, $hint='', $url , &$result) );
+ if ( $result == null ) {
+ return "[".$url."]";
+ } else {
+ return ($result);
+ }
+ /** End of hook */
}
/**