Skip to content

Commit 9651ed0

Browse files
author
Phan Thanh Cong
committed
remove self autoload
1 parent 8c411ae commit 9651ed0

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

Manager.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,8 @@ class ChipVN_ImageUploader_Manager
2121
*/
2222
public static function make($plugin)
2323
{
24-
$prefix = 'ChipVN_ImageUploader_Plugins_';
25-
foreach (array($prefix.'Abstract', $class = $prefix.ucfirst($plugin)) as $name) {
26-
if (!class_exists($name, false)) {
27-
require self::getClassFile($name);
28-
}
29-
}
24+
$class = 'ChipVN_ImageUploader_Plugins_'.ucfirst($plugin);
3025

3126
return new $class();
3227
}
33-
34-
/**
35-
* Gets class file.
36-
*
37-
* @param string $class
38-
* @return string
39-
*/
40-
protected static function getClassFile($class)
41-
{
42-
return strtr($class, array(
43-
'ChipVN' => dirname(dirname(__FILE__)),
44-
'_' => DIRECTORY_SEPARATOR,
45-
)).'.php';
46-
}
4728
}

0 commit comments

Comments
 (0)