mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 10:48:42 +00:00
Make canUserEditPage() static
This shuts up a strict standards notice Change-Id: I59ce775169965531dd10051418c927b769613abb
This commit is contained in:
parent
b59d49a80d
commit
3112448bde
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in a new issue