|
@@ 252-259 (lines=8) @@
|
| 249 |
|
$path = ''; |
| 250 |
|
|
| 251 |
|
// Is the model in a sub-folder? If so, parse out the filename and path. |
| 252 |
|
if (($last_slash = strrpos($model, '/')) !== FALSE) |
| 253 |
|
{ |
| 254 |
|
// The path is in front of the last slash |
| 255 |
|
$path = substr($model, 0, $last_slash + 1); |
| 256 |
|
|
| 257 |
|
// And the model name behind it |
| 258 |
|
$model = substr($model, $last_slash + 1); |
| 259 |
|
} |
| 260 |
|
|
| 261 |
|
if ($name == '') |
| 262 |
|
{ |
|
@@ 888-895 (lines=8) @@
|
| 885 |
|
// Was the path included with the class name? |
| 886 |
|
// We look for a slash to determine this |
| 887 |
|
$subdir = ''; |
| 888 |
|
if (($last_slash = strrpos($class, '/')) !== FALSE) |
| 889 |
|
{ |
| 890 |
|
// Extract the path |
| 891 |
|
$subdir = substr($class, 0, $last_slash + 1); |
| 892 |
|
|
| 893 |
|
// Get the filename from the path |
| 894 |
|
$class = substr($class, $last_slash + 1); |
| 895 |
|
} |
| 896 |
|
|
| 897 |
|
// We'll test for both lowercase and capitalized versions of the file name |
| 898 |
|
foreach (array(ucfirst($class), strtolower($class)) as $class) |