r35982 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35981‎ | r35982 | r35983 >
Date:23:42, 6 June 2008
Author:skizzerz
Status:old
Tags:
Comment:
* fix so it doesn't throw errors for <=1.12 wikis
Modified paths:
  • /trunk/extensions/ForcePreview/ForcePreview.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ForcePreview/ForcePreview.php
@@ -42,7 +42,7 @@
4343 return true;
4444 }
4545
46 -function efForcePreviewLivePreview( &$out, $sk ) {
 46+function efForcePreviewLivePreview( &$out, $sk = null ) {
4747 global $wgUser, $wgRequest, $wgLivePreview, $wgTitle;
4848 if(!$wgLivePreview || !$wgTitle->userCan('edit', true) )
4949 return true;

Status & tagging log