summaryrefslogtreecommitdiffstats
path: root/system/init/init_image_lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/init/init_image_lib.php')
-rw-r--r--system/init/init_image_lib.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/system/init/init_image_lib.php b/system/init/init_image_lib.php
new file mode 100644
index 000000000..dcd702f0d
--- /dev/null
+++ b/system/init/init_image_lib.php
@@ -0,0 +1,24 @@
+<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+
+/**
+ * Loads and instantiates image manipulation class
+ *
+ * @access private called by the app controller
+ */
+
+$config = array();
+if (file_exists(APPPATH.'config/image_lib'.EXT))
+{
+ include_once(APPPATH.'config/image_lib'.EXT);
+}
+
+if ( ! class_exists('CI_Image_lib'))
+{
+ require_once(BASEPATH.'libraries/Image_lib'.EXT);
+}
+
+$obj =& get_instance();
+$obj->image_lib = new CI_Image_lib($config);
+$obj->ci_is_loaded[] = 'image_lib';
+
+?> \ No newline at end of file