From: Brion Vibber Date: Thu, 5 Jul 2007 17:51:37 +0000 (+0000) Subject: Don't bother including the ajax watch localizations for anon users. Should save a... X-Git-Tag: 1.31.0-rc.0~52269 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=757f4717d6a7d43139231415a5a5458023e10acb;p=lhc%2Fweb%2Fwiklou.git Don't bother including the ajax watch localizations for anon users. Should save a few bytes times a few billion hits per month. :) --- diff --git a/includes/Skin.php b/includes/Skin.php index 05dd7d2cc2..3feb5835a0 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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 ) {