@@ 39-42 (lines=4) @@ | ||
36 | $this->CI->load->model($classname); |
|
37 | ||
38 | // Is the model in a sub-folder? |
|
39 | if (($last_slash = strrpos($classname, '/')) !== FALSE) |
|
40 | { |
|
41 | $classname = substr($classname, ++$last_slash); |
|
42 | } |
|
43 | ||
44 | return $this->CI->$classname; |
|
45 | } |
|
@@ 60-63 (lines=4) @@ | ||
57 | $this->CI->load->library($classname, $args); |
|
58 | ||
59 | // Is the library in a sub-folder? |
|
60 | if (($last_slash = strrpos($classname, '/')) !== FALSE) |
|
61 | { |
|
62 | $classname = substr($classname, ++$last_slash); |
|
63 | } |
|
64 | $classname = strtolower($classname); |
|
65 | ||
66 | return $this->CI->$classname; |