Last modified: 2010-05-15 15:54:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16212, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14212 - SkinSubPageSubtitle hook override is broken
SkinSubPageSubtitle hook override is broken
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-21 16:44 UTC by Edward Rudd
Modified: 2010-05-15 15:54 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Edward Rudd 2008-05-21 16:44:17 UTC
In 1.12.0 the subPagesubtitle hook does not work as expected if you return "false" to state "I overrode the implementation use my value"

here is a snip of the code starting from line 843 in file includes/Skin.php
----
      function subPageSubtitle() {
                $subpages = '';
                if(!wfRunHooks('SkinSubPageSubtitle', array(&$subpages)))
                        return $retval;

                global $wgOut, $wgTitle, $wgNamespacesWithSubpages;
                if($wgOut->isArticle() && !empty($wgNamespacesWithSubpages[$wgTitle->getNamespace()])) {
                        $ptext=$wgTitle->getPrefixedText()
----

Note that if !wfRunHooks then $retval is returned, which is an undefined variable.

It *should* return $subpages.
Comment 1 Roan Kattouw 2008-05-21 20:07:37 UTC
Stupid mistake, I wrote a lot of "return $retval;" around that time. Fixed in r35145.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links