Skip to content

Commit

Permalink
Added changeds made by sir_pepe
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Schepp Schaefer <schaepp@gmx.de>
  • Loading branch information
Schepp committed Sep 6, 2010
2 parents 64e7cb6 + e29996f commit e308b2f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion booster/.gitignore
@@ -1 +1,2 @@
booster_cache
booster_cache/*
!booster_cache/empty
1 change: 1 addition & 0 deletions booster/booster_cache/empty
@@ -0,0 +1 @@
0
4 changes: 2 additions & 2 deletions booster/booster_inc.php
Expand Up @@ -2033,7 +2033,7 @@ public function js_markup()
if($this->errormessage != '')
{
$this->errormessage = trim($this->errormessage,"\r\n");
$markup .= '<script type="text/javascript">alert("CSS-JS-Booster problems:\r\n\r\n'.str_replace('"',"'",$this->errormessage).'");</script>'."\r\n";
$markup .= '<script type="text/javascript">throw("CSS-JS-Booster problems:\r\n\r\n'.str_replace('"',"'",$this->errormessage).'");</script>'."\r\n";
}

// Put together the markup linking to our booster-js-files
Expand All @@ -2059,7 +2059,7 @@ public function js_markup()
(!$this->js_minify ? '&amp;js_minify=0' : '').
'&amp;nocache='.$this->filestime.'"></script>'."\r\n";

if($this->js_minify && $this->js_executionmode == '') $markup .= '<script type="text/javascript">if(typeof boostererror == "undefined") alert("CSS-JS-Booster notice: Minification may have broken your JavaScript. Consider turning minification off by setting $booster->js_minify = FALSE;");</script>'."\r\n";
if($this->js_minify && $this->js_executionmode == '') $markup .= '<script type="text/javascript">if(typeof boostererror == "undefined") throw("CSS-JS-Booster notice: Minification may have broken your JavaScript. Consider turning minification off by setting $booster->js_minify = FALSE;");</script>'."\r\n";

return $markup;
}
Expand Down
2 changes: 1 addition & 1 deletion booster/wp_booster.php
Expand Up @@ -400,4 +400,4 @@ function booster_wp() {
}
}
add_action('wp_footer','booster_wp');
?>
?>
1 change: 1 addition & 0 deletions examples/example1/css/style.css
Expand Up @@ -118,3 +118,4 @@ a:hover{background:#FEFEFE; color:#fff; text-decoration:underline;}

#footerPan p.copyright{width:auto; background-color: #705D20; color:#fff; position:absolute; top:23px; left:10px;}


0 comments on commit e308b2f

Please sign in to comment.