Skip to content

Commit 9d65f97

Browse files
committed
Edited classes/imagefly.php via GitHub
1 parent 5eb50c6 commit 9d65f97

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

classes/imagefly.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,16 @@ public function __construct()
6464
error_reporting(error_reporting() & ~E_STRICT);
6565

6666
// Set the config
67-
$this->config = Kohana::config('imagefly');
67+
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+
}
6877

6978
// Try to create the cache directory if it does not exist
7079
$this->_createCacheDir();

0 commit comments

Comments
 (0)