Update
[lhc/web/wiklou.git] / includes / Linker.php
index c074853..17e988b 100644 (file)
@@ -368,7 +368,7 @@ class Linker {
         *                      the end of the link.
         */
        function makeStubLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
-               $this->makeColouredLinkObj( $nt, 'stub', $text, $query, $trail, $prefix );
+               return $this->makeColouredLinkObj( $nt, 'stub', $text, $query, $trail, $prefix );
        }
 
        /**
@@ -1197,9 +1197,9 @@ class Linker {
 
                // The two hooks have slightly different interfaces . . .
                if( $hook == 'EditSectionLink' ) {
-                       wfRunHooks( $hook, array( &$this, $nt, $section, $hint, $url, &$result ) );
+                       wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $hint, $url, &$result ) );
                } elseif( $hook == 'EditSectionLinkForOther' ) {
-                       wfRunHooks( $hook, array( &$this, $nt, $section, $url, &$result ) );
+                       wfRunHooks( 'EditSectionLinkForOther', array( &$this, $nt, $section, $url, &$result ) );
                }
                
                // For reverse compatibility, add the brackets *after* the hook is run,