@@ -92,8 +92,6 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * adds a requirement into the loader and registers it as a page with the router |
| 94 | 94 | * |
| 95 | - * @param string $function php function name or class.class_name |
|
| 96 | - * @param string $path source file path |
|
| 97 | 95 | */ |
| 98 | 96 | public function add_public_path($page, $source) { |
| 99 | 97 | $this->public_routes['/'.$page] = $source; |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | public function get_routes($include_admin = FALSE) { |
| 37 | 37 | //if ($include_admin === FALSE && $GLOBALS['tf']->ima === 'admin') |
| 38 | 38 | //$include_admin = TRUE; |
| 39 | - return $include_admin === TRUE? array_merge($this->admin_routes, $this->routes) : $this->routes; |
|
| 39 | + return $include_admin === TRUE ? array_merge($this->admin_routes, $this->routes) : $this->routes; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |