r38283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38282‎ | r38283 | r38284 >
Date:11:20, 31 July 2008
Author:emil
Status:old
Tags:
Comment:
hooks should return either true or false
Modified paths:
  • /trunk/extensions/wikiwyg/share/MediaWiki/extensions/MediaWikiWyg.php (modified) (history)

Diff [purge]

Index: trunk/extensions/wikiwyg/share/MediaWiki/extensions/MediaWikiWyg.php
@@ -227,7 +227,7 @@
228228
229229 function beforeTidyHook($parser, $text) {
230230 global $wgServer, $wgScriptPath, $wgUser;
231 - if ($wgUser->getOption ('in-page', 1) == 0 ) return;
 231+ if ($wgUser->getOption ('in-page', 1) == 0 ) return true;
232232 $wgScriptPath != "" ? $fixedPath = $wgServer."/".$wgScriptPath : $fixedPath = $wgServer;
233233 /* stuff changed in MW 1.9.3, the order of elements is different now */
234234 /* one more interesting thing - determine the maximum depth of the headers
@@ -421,4 +421,4 @@
422422 return true;
423423 }
424424
425 -} # End if(defined MEDIAWIKI)
\ No newline at end of file
 425+} # End if(defined MEDIAWIKI)

Follow-up revisions

RevisionCommit summaryAuthorDate
r39126backported r38283 so the wikiwyg extension (used by Wikia's Special:Createpag...emil09:58, 11 August 2008

Status & tagging log