r39126 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39125‎ | r39126 | r39127 >
Date:09:58, 11 August 2008
Author:emil
Status:old
Tags:
Comment:
backported r38283 so the wikiwyg extension (used by Wikia's Special:Createpage) can work
Modified paths:
  • /branches/REL1_13/extensions/wikiwyg/share/MediaWiki/extensions/MediaWikiWyg.php (modified) (history)

Diff [purge]

Index: branches/REL1_13/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)

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r38283hooks should return either true or falseemil11:20, 31 July 2008

Status & tagging log