Changeset 4614
- Timestamp:
- 09/06/10 21:52:15 (17 months ago)
- Location:
- trunk/core
- Files:
-
- 4 edited
-
config/ini.config.php (modified) (3 diffs)
-
factories/config.factory.php (modified) (2 diffs)
-
filters/maintenance.filter.php (modified) (1 diff)
-
router.core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/config/ini.config.php
r4599 r4614 104 104 } 105 105 106 107 106 # when ini_filename exists, get old config array 108 107 if(is_file($ini_filename) === true) … … 115 114 else 116 115 { 117 118 116 # create file 119 117 touch($ini_filename); … … 215 213 { 216 214 # check ini_filename exists 217 if(is_file($filename) === false )215 if(is_file($filename) === false or is_readable($filename) === false) 218 216 { 219 217 throw new Clansuite_Exception('File not found: '.$filename, 4); -
trunk/core/factories/config.factory.php
r4599 r4614 103 103 { 104 104 $handler = self::getHandler($configfile); 105 return $handler ::readConfig($configfile);105 return $handler->readConfig($configfile); 106 106 } 107 107 … … 135 135 { 136 136 # instantiate and return the specific confighandler with the $configfile to read 137 #return new $class(); 138 return $class::getInstance(); 137 #return $class::getInstance(); 138 #call_user_func($class.'::getInstance'); 139 return new $class(); 139 140 } 140 141 else -
trunk/core/filters/maintenance.filter.php
r4599 r4614 70 70 $html = $smarty->fetch( ROOT_THEMES . 'core/templates/maintenance.tpl', true); 71 71 72 $response ::setContent($html);73 $response ::flush();72 $response->setContent($html); 73 $response->flush(); 74 74 exit(); 75 75 } -
trunk/core/router.core.php
r4599 r4614 84 84 public function __construct(Clansuite_HttpRequest $request) 85 85 { 86 $request_uri = $request ::getRequestURI();86 $request_uri = $request->getRequestURI(); 87 87 88 88 # clean the incomming uri … … 1104 1104 public function addRoutesOfModule($modulename) 1105 1105 { 1106 self: updateApplicationRoutes($modulename);1106 self::updateApplicationRoutes($modulename); 1107 1107 } 1108 1108 … … 1213 1213 interface Clansuite_Router_Interface 1214 1214 { 1215 function addRoute($ name, array $route);1215 function addRoute($url_pattern, array $route_options = null); 1216 1216 function addRoutes(array $routes); 1217 1217 function getRoutes();
Note: See TracChangeset
for help on using the changeset viewer.
