dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
750e7c1
)
Revert the conditional un-including of ajax.js from last commit after conversation...
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Wed, 27 Dec 2006 01:17:55 +0000
(
01:17
+0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Wed, 27 Dec 2006 01:17:55 +0000
(
01:17
+0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
74c041f
..
d83e1e1
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-535,10
+535,7
@@
class OutputPage {
$sk = $wgUser->getSkin();
if ( $wgUseAjax ) {
$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" );
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" );