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