equal
deleted
inserted
replaced
13 * @return bool |
13 * @return bool |
14 */ |
14 */ |
15 function bfw_autoLoader($class) { |
15 function bfw_autoLoader($class) { |
16 $nsClass = str_replace('\\', '/', $class); |
16 $nsClass = str_replace('\\', '/', $class); |
17 $filename = sprintf('%s/classes/%s.php', TICKET_PATH, $nsClass); |
17 $filename = sprintf('%s/classes/%s.php', TICKET_PATH, $nsClass); |
18 $classPath = sprintf('classes/%s.php', str_replace('\\', '/', $nsClass)); |
18 $classPath = sprintf('classes/%s.php', $nsClass); |
19 |
19 |
20 if (file_exists($filename)) { |
20 if (file_exists($filename)) { |
21 require_once "$classPath"; |
21 require_once "$classPath"; |
22 |
22 |
23 return true; |
23 return true; |