We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5eb50c6 + 9d65f97 commit 7976e8bCopy full SHA for 7976e8b
classes/imagefly.php
@@ -64,7 +64,16 @@ public function __construct()
64
error_reporting(error_reporting() & ~E_STRICT);
65
66
// Set the config
67
- $this->config = Kohana::config('imagefly');
+ if (version_compare(Kohana::VERSION, '3.2', '<'))
68
+ {
69
+ // Kohaha 3.1.x config API
70
+ $this->config = Kohana::config('imagefly');
71
+ }
72
+ else
73
74
+ // Kohaha 3.2.x config API
75
+ $this->config = Kohana::$config->load('imagefly');
76
77
78
// Try to create the cache directory if it does not exist
79
$this->_createCacheDir();
0 commit comments