From 757f4717d6a7d43139231415a5a5458023e10acb Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 5 Jul 2007 17:51:37 +0000 Subject: [PATCH] Don't bother including the ajax watch localizations for anon users. Should save a few bytes times a few billion hits per month. :) --- includes/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1