https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114830
Revision: 114830
Author: yaron
Date: 2012-04-10 19:25:32 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Fix for r114824 - fix for global variable name
Modified Paths:
--------------
trunk/extensions/ApprovedRevs/ApprovedRevs_body.php
Modified: trunk/extensions/ApprovedRevs/ApprovedRevs_body.php
===================================================================
--- trunk/extensions/ApprovedRevs/ApprovedRevs_body.php 2012-04-10 19:15:21 UTC
(rev 114829)
+++ trunk/extensions/ApprovedRevs/ApprovedRevs_body.php 2012-04-10 19:25:32 UTC
(rev 114830)
@@ -134,7 +134,7 @@
}
public static function userCanApprove( $title ) {
- global $egApproveRevsSelfOwnedNamespaces;
+ global $egApprovedRevsSelfOwnedNamespaces;
// $mUserCanApprove is a static variable used for
// "caching" the result of this function, so that
@@ -151,10 +151,10 @@
// permission, they still might be able to approve
// revisions - it depends on whether the current
// namespace is within the admin-defined
- // $egApproveRevsSelfOwnedNamespaces array.
+ // $egApprovedRevsSelfOwnedNamespaces array.
global $wgUser;
$namespace = $title->getNamespace();
- if ( in_array( $namespace,
$egApproveRevsSelfOwnedNamespaces ) ) {
+ if ( in_array( $namespace,
$egApprovedRevsSelfOwnedNamespaces ) ) {
if ( $namespace == NS_USER ) {
// If the page is in the 'User:'
// namespace, this user can approve
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs