r69093 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69092‎ | r69093 | r69094 >
Date:13:45, 6 July 2010
Author:jojo
Status:ok
Tags:
Comment:
fix undefined vars
Modified paths:
  • /trunk/extensions/Collection/Collection.templates.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.templates.php
@@ -132,6 +132,9 @@
133133 if ( $GLOBALS['wgUser']->isLoggedIn() ) {
134134 $canSaveUserPage = $GLOBALS['wgUser']->isAllowed( 'collectionsaveasuserpage' );
135135 $canSaveCommunityPage = $GLOBALS['wgUser']->isAllowed( 'collectionsaveascommunitypage' );
 136+ } else {
 137+ $canSaveUserPage = false;
 138+ $canSaveCommunityPage = false;
136139 }
137140 if ( $GLOBALS['wgEnableWriteAPI'] && ( $canSaveUserPage || $canSaveCommunityPage ) ) {
138141 ?>

Status & tagging log