Make canUserEditPage() static

This shuts up a strict standards notice

Change-Id: I59ce775169965531dd10051418c927b769613abb
This commit is contained in:
Catrope 2012-05-31 02:41:21 -07:00
parent b59d49a80d
commit 3112448bde

View file

@ -36,7 +36,7 @@ class VisualEditorHooks {
* Allow edits to the namespace only by admins
* Code used from Extension:NamespaceProtection
*/
function canUserEditPage( &$title, &$user, $action, &$result ){
public static function canUserEditPage( &$title, &$user, $action, &$result ){
global $wgUser, $wgNamespaceProtection;
if ( array_key_exists( $title->mNamespace, $wgNamespaceProtection ) ) {