Permalink
Browse files

Kohana::config_xxx() is now Kohana_Config::instance()->xxx

  • Loading branch information...
1 parent ddf668d commit b9a0e0963746420d82ad3107135aa7a9256825be @bharat bharat committed Nov 27, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 modules/gallery/helpers/graphics.php
@@ -371,18 +371,18 @@ static function init_toolkit() {
}
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;
}

0 comments on commit b9a0e09

Please sign in to comment.