Revert the conditional un-including of ajax.js from last commit after conversation...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 27 Dec 2006 01:17:55 +0000 (01:17 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 27 Dec 2006 01:17:55 +0000 (01:17 +0000)
includes/OutputPage.php

index 74c041f..d83e1e1 100644 (file)
@@ -535,10 +535,7 @@ class OutputPage {
                $sk = $wgUser->getSkin();
 
                if ( $wgUseAjax ) {
-                       // No point in enabling it if watching is the only enabled thing and the user isn't logged in
-                       if( $wgAjaxSearch || ( $wgAjaxWatch && $wgUser->isLoggedIn() )) {
-                               $this->addScript( "<script type=\"{$wgJsMimeType}\" src=\"{$wgStylePath}/common/ajax.js?$wgStyleVersion\"></script>\n" );
-                       }
+                       $this->addScript( "<script type=\"{$wgJsMimeType}\" src=\"{$wgStylePath}/common/ajax.js?$wgStyleVersion\"></script>\n" );
                        if( $wgAjaxSearch ) {
                                $this->addScript( "<script type=\"{$wgJsMimeType}\" src=\"{$wgStylePath}/common/ajaxsearch.js\"></script>\n" );
                                $this->addScript( "<script type=\"{$wgJsMimeType}\">hookEvent(\"load\", sajax_onload);</script>\n" );