r31848 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31847‎ | r31848 | r31849 >
Date:06:42, 12 March 2008
Author:dale
Status:old
Tags:
Comment:
fixed unset $wghooks['editfilter'] check
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php
@@ -354,8 +354,10 @@
355355 function internalAttemptSave( &$result, $bot = false ) {
356356 global $wgHooks;
357357 //clear confirmEdit for ajax edits:
358 - foreach($wgHooks['EditFilter'] as $k=>$hook){
359 - unset($wgHooks['EditFilter'][$k]);
 358+ if(isset($wgHooks['EditFilter'])){
 359+ foreach($wgHooks['EditFilter'] as $k=>$hook){
 360+ unset($wgHooks['EditFilter'][$k]);
 361+ }
360362 }
361363 parent::internalAttemptSave( &$result, $bot = false );
362364 }

Status & tagging log