set default when asking for config value
git-svn-id: file:///home/shish/svn/shimmie2/trunk@112 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
51d0ee5f0c
commit
775079b56f
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class Zoom extends Extension {
|
||||||
|
|
||||||
private function make_zoomer() {
|
private function make_zoomer() {
|
||||||
global $config;
|
global $config;
|
||||||
$default = $config->get_bool("image_zoom") ? "scale(img);" : "";
|
$default = $config->get_bool("image_zoom", false) ? "scale(img);" : "";
|
||||||
return <<<EOD
|
return <<<EOD
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
img = byId("main_image");
|
img = byId("main_image");
|
||||||
|
|
Reference in a new issue