"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/CanopyController.php" between
canopy-3.0.4.tar.gz and canopy-3.0.5.tar.gz

About: Canopy provides a complete web site content management system (successor of "phpwebsite").

CanopyController.php  (canopy-3.0.4):CanopyController.php  (canopy-3.0.5)
skipping to change at line 102 skipping to change at line 102
$title = $request->getCurrentToken(); $title = $request->getCurrentToken();
if ($title == '/') { if ($title == '/') {
// @todo Configured Default Module // @todo Configured Default Module
return null; return null;
} }
} }
$mr = \phpws2\ModuleRepository::getInstance(); $mr = \phpws2\ModuleRepository::getInstance();
// No module called, route to home page try {
if (!$mr->hasModule($title)) { $module = $mr->getModule($title);
\phpws\PHPWS_Core::home(); } catch (\Exception $e) {
return; $request->setModule(null);
return null;
} }
$request->setModule($module);
$module = $mr->getModule($title);
$mr->setCurrentModule($module); $mr->setCurrentModule($module);
return $module; return $module;
} }
private function renderResponse(Request $request, Response $response) private function renderResponse(Request $request, Response $response)
{ {
// Temporary until proper error pages are fully implemented // Temporary until proper error pages are fully implemented
// @todo customizable, editable error pages that don't dump a bunch of // @todo customizable, editable error pages that don't dump a bunch of
// stack if it's not needed or if debug is disabled // stack if it's not needed or if debug is disabled
 End of changes. 2 change blocks. 
7 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)