summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-26 21:14:43 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-26 21:14:43 -0800
commitb9a0e0963746420d82ad3107135aa7a9256825be (patch)
tree3c576008e28eacf451d5c0a52ddf87bfaa09efef
parentddf668d43958e060f5aa4a14a4ef8dc8d2b51d2b (diff)
Kohana::config_xxx() is now Kohana_Config::instance()->xxx
-rw-r--r--modules/gallery/helpers/graphics.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index e45a5125..c93cc304 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -371,18 +371,18 @@ class graphics_Core {
}
switch(module::get_var("gallery", "graphics_toolkit")) {
case "gd":
- Kohana::config_set("image.driver", "GD");
+ Kohana_Config::instance()->set("image.driver", "GD");
break;
case "imagemagick":
- Kohana::config_set("image.driver", "ImageMagick");
- Kohana::config_set(
+ Kohana_Config::instance()->set("image.driver", "ImageMagick");
+ Kohana_Config::instance()->set(
"image.params.directory", module::get_var("gallery", "graphics_toolkit_path"));
break;
case "graphicsmagick":
- Kohana::config_set("image.driver", "GraphicsMagick");
- Kohana::config_set(
+ Kohana_Config::instance()->set("image.driver", "GraphicsMagick");
+ Kohana_Config::instance()->set(
"image.params.directory", module::get_var("gallery", "graphics_toolkit_path"));
break;
}