Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
incorrect loading of wikibits.js
  • Loading branch information
hexmode committed Mar 23, 2013
1 parent 9432255 commit 0e9a414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions skins/Cavendish.php
Expand Up @@ -89,9 +89,7 @@ function head() {
<?php $this->html('csslinks') ?>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css"; /*]]>*/</style>
<link rel="stylesheet" type="text/css" media="print" href="<?php $this->text('stylepath') ?>/common/commonPrint.css" />
<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>
<script type="text/javascript" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js"></script>
<?php
<?php print Skin::makeGlobalVariablesScript( $this->data );
$jsBit = array( 'jsvarurl', 'userjs', 'userjsprev' );
foreach( $jsBit as $bit ) {
if( isset( $this->data[ $bit ] ) ) {
Expand Down Expand Up @@ -237,7 +235,7 @@ function body() {

</div><!-- end of MBODY div -->
<?php
}
}

function footer() {
?>
Expand Down
5 changes: 2 additions & 3 deletions skins/gmo.php
Expand Up @@ -100,9 +100,8 @@ function head() {
<?php $this->html('csslinks') ?>

<link rel="stylesheet" type="text/css" media="print" href="<?php $this->text('stylepath') ?>/common/commonPrint.css" />
<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>
<script type="text/javascript" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js"></script>
<?php if($this->data['jsvarurl' ]) { ?><script type="text/javascript" src="<?php $this->text('jsvarurl' ) ?>"></script><?php } ?>
<?php print Skin::makeGlobalVariablesScript( $this->data );
if($this->data['jsvarurl' ]) { ?><script type="text/javascript" src="<?php $this->text('jsvarurl' ) ?>"></script><?php } ?>
<?php if($this->data['pagecss']) { ?>
<style type="text/css"><?php $this->html('pagecss') ?></style>
<?php } ?>
Expand Down

0 comments on commit 0e9a414

Please sign in to comment.