r23748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23747‎ | r23748 | r23749 >
Date:17:51, 5 July 2007
Author:brion
Status:old
Tags:
Comment:
Don't bother including the ajax watch localizations for anon users. Should save a few bytes times a few billion hits per month. :)
Modified paths:
  • /trunk/extensions/inputbox/inputbox.php (modified) (history)
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -335,7 +335,7 @@
336336 $vars['wgLivepreviewMessageError'] = wfMsg( 'livepreview-error' );
337337 }
338338
339 - if($wgUseAjax && $wgAjaxWatch) {
 339+ if($wgUseAjax && $wgAjaxWatch && $wgUser->isLoggedIn() ) {
340340 $msgNames = array( 'watch', 'unwatch', 'watching', 'unwatching' );
341341 $msgs = (object)array();
342342 foreach ( array( 'watch', 'unwatch', 'watching', 'unwatching' ) as $msgName ) {
Index: trunk/extensions/inputbox/inputbox.php
@@ -254,4 +254,4 @@
255255 $this->width = 50;
256256 }
257257 }
258 -
 258+?>

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log