|
@@ 1052-1068 (lines=17) @@
|
| 1049 |
|
$filepath = $path.'libraries/'.$subdir.$class.'.php'; |
| 1050 |
|
|
| 1051 |
|
// Safety: Was the class already loaded by a previous call? |
| 1052 |
|
if (class_exists($class, FALSE)) |
| 1053 |
|
{ |
| 1054 |
|
// Before we deem this to be a duplicate request, let's see |
| 1055 |
|
// if a custom object name is being supplied. If so, we'll |
| 1056 |
|
// return a new instance of the object |
| 1057 |
|
if ($object_name !== NULL) |
| 1058 |
|
{ |
| 1059 |
|
$CI =& get_instance(); |
| 1060 |
|
if ( ! isset($CI->$object_name)) |
| 1061 |
|
{ |
| 1062 |
|
return $this->_ci_init_library($class, '', $params, $object_name); |
| 1063 |
|
} |
| 1064 |
|
} |
| 1065 |
|
|
| 1066 |
|
// log_message('debug', $class.' class already loaded. Second attempt ignored.'); |
| 1067 |
|
// return; |
| 1068 |
|
} |
| 1069 |
|
// Does the file exist? No? Bummer... |
| 1070 |
|
if ( ! file_exists($filepath)) |
| 1071 |
|
{ |
|
@@ 1120-1127 (lines=8) @@
|
| 1117 |
|
// Before we deem this to be a duplicate request, let's see |
| 1118 |
|
// if a custom object name is being supplied. If so, we'll |
| 1119 |
|
// return a new instance of the object |
| 1120 |
|
if ($object_name !== NULL) |
| 1121 |
|
{ |
| 1122 |
|
$CI =& get_instance(); |
| 1123 |
|
if ( ! isset($CI->$object_name)) |
| 1124 |
|
{ |
| 1125 |
|
return $this->_ci_init_library($library_name, $prefix, $params, $object_name); |
| 1126 |
|
} |
| 1127 |
|
} |
| 1128 |
|
|
| 1129 |
|
// log_message('debug', $library_name.' class already loaded. Second attempt ignored.'); |
| 1130 |
|
// return; |