From: Domas Mituzas Date: Tue, 10 Mar 2009 20:05:57 +0000 (+0000) Subject: don't do ajax watchlist stuff for non-article-pages X-Git-Tag: 1.31.0-rc.0~42529 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=2ccd89bf9a0a82854ce6a1afef68446301a0bc7e;p=lhc%2Fweb%2Fwiklou.git don't do ajax watchlist stuff for non-article-pages --- diff --git a/includes/Skin.php b/includes/Skin.php index a543023a88..e0e0667a5d 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -401,7 +401,7 @@ class Skin extends Linker { $vars['wgLivepreviewMessageError'] = wfMsg( 'livepreview-error' ); } - if($wgUseAjax && $wgAjaxWatch && $wgUser->isLoggedIn() ) { + if ( $wgOut->isArticleRelated() && $wgUseAjax && $wgAjaxWatch && $wgUser->isLoggedIn() ) { $msgs = (object)array(); foreach ( array( 'watch', 'unwatch', 'watching', 'unwatching' ) as $msgName ) { $msgs->{$msgName . 'Msg'} = wfMsg( $msgName );