r41665 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41664‎ | r41665 | r41666 >
Date:20:19, 4 October 2008
Author:skizzerz
Status:old
Tags:
Comment:
* bugfix for some inter-extension incompatibilities
Modified paths:
  • /trunk/extensions/GroupPermissionsManager/plugins/ExtendedPermissions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GroupPermissionsManager/plugins/ExtendedPermissions.php
@@ -196,7 +196,7 @@
197197 global $wgRequest;
198198 if($wgRequest->getVal('action') == 'edit' || $wgRequest->getVal('action') == 'sumbit') {
199199 global $wgTitle;
200 - if(!$wgTitle->userCan('edit')) return true;
 200+ if(!$wgTitle instanceOf Title || !$wgTitle->userCan('edit')) return true;
201201 }
202202 loadGPMessages();
203203 if($key == 'right-edit') {

Status & tagging log