(bug 10184) Site CSS/JS should be included after that added dynamically (e.g. by...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 29 Jun 2007 06:01:50 +0000 (06:01 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 29 Jun 2007 06:01:50 +0000 (06:01 +0000)
RELEASE-NOTES
skins/MonoBook.php

index 0cfd0ba..7f8c4fb 100644 (file)
@@ -240,6 +240,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   equivalent to a whitelisted title
 * Don't use garbled parser cache output when viewing custom CSS or JavaScript
   pages
+* (bug 10184) Site CSS/JS should be included after that added dynamically (e.g.
+  by extensions)
 
 == API changes since 1.10 ==
 
index ff5408f..8582c61 100644 (file)
@@ -73,6 +73,10 @@ class MonoBookTemplate extends QuickTemplate {
                 
                <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"><!-- wikibits js --></script>
 <?php  if($this->data['jsvarurl'  ]) { ?>
+
+               <!-- Head Scripts -->
+<?php $this->html('headscripts') ?>
+
                <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('jsvarurl'  ) ?>"><!-- site js --></script>
 <?php  } ?>
 <?php  if($this->data['pagecss'   ]) { ?>
@@ -88,8 +92,6 @@ class MonoBookTemplate extends QuickTemplate {
                <script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script>
 <?php  }
                if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
-               <!-- Head Scripts -->
-<?php $this->html('headscripts') ?>
        </head>
 <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
 <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>