* (bug 3667) Add missing global in page move code
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 29 Oct 2005 06:02:08 +0000 (06:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 29 Oct 2005 06:02:08 +0000 (06:02 +0000)
Might or might not mollify PHP 4.1.2, but it's a correctness thing anyway.

RELEASE-NOTES
includes/Title.php

index 69b517f..4087548 100644 (file)
@@ -191,6 +191,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * (bug 3291) 'last' diff link for last history line when not at end
 * Avoid numerous redundant latest-revision lookups in history
 * Ability to set the table name for external storage servers
+* (bug 3667) Add missing global in page move code
 
 
 === Caveats ===
index a6ae3cb..7160e75 100644 (file)
@@ -1609,6 +1609,7 @@ class Title {
                        $u->doUpdate();
                }
 
+               global $wgUser;
                wfRunHooks( 'TitleMoveComplete', array( &$this, &$nt, &$wgUser, $pageid, $redirid ) );
                return true;
        }