Revert the conditional un-including of ajax.js from last commit after conversation with brion on IRC. Will someone think of the poor extensions!
This commit is contained in:
parent
750e7c1f88
commit
815a3de2bb
1 changed files with 1 additions and 4 deletions
|
|
@ -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" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue