Don't bother including the ajax watch localizations for anon users. Should save a...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 5 Jul 2007 17:51:37 +0000 (17:51 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 5 Jul 2007 17:51:37 +0000 (17:51 +0000)
includes/Skin.php

index 05dd7d2..3feb583 100644 (file)
@@ -335,7 +335,7 @@ class Skin extends Linker {
                        $vars['wgLivepreviewMessageError']   = wfMsg( 'livepreview-error' );
                }
 
-               if($wgUseAjax && $wgAjaxWatch) {
+               if($wgUseAjax && $wgAjaxWatch && $wgUser->isLoggedIn() ) {
                        $msgNames = array( 'watch', 'unwatch', 'watching', 'unwatching' );
                        $msgs = (object)array();
                        foreach ( array( 'watch', 'unwatch', 'watching', 'unwatching' ) as $msgName ) {