parent
fe73d6de83
commit
9846dfb2e2
|
@ -35,10 +35,7 @@ class Doc_ModuleController extends DocController
|
||||||
if ($suppressErrors) {
|
if ($suppressErrors) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
throw new Zend_Controller_Action_Exception(
|
$this->httpNotFound($this->translate('Documentation for module \'%s\' is not available'), $module);
|
||||||
sprintf($this->translate('Documentation for module \'%s\' is not available'), $module),
|
|
||||||
404
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,10 +72,7 @@ class Doc_ModuleController extends DocController
|
||||||
}
|
}
|
||||||
$moduleManager = Icinga::app()->getModuleManager();
|
$moduleManager = Icinga::app()->getModuleManager();
|
||||||
if (! $moduleManager->hasInstalled($moduleName)) {
|
if (! $moduleManager->hasInstalled($moduleName)) {
|
||||||
throw new Zend_Controller_Action_Exception(
|
$this->httpNotFound($this->translate('Module \'%s\' is not installed'), $moduleName);
|
||||||
sprintf($this->translate('Module \'%s\' is not installed'), $moduleName),
|
|
||||||
404
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +94,7 @@ class Doc_ModuleController extends DocController
|
||||||
array('moduleName' => $module)
|
array('moduleName' => $module)
|
||||||
);
|
);
|
||||||
} catch (DocException $e) {
|
} catch (DocException $e) {
|
||||||
throw new Zend_Controller_Action_Exception($e->getMessage(), 404);
|
$this->httpNotFound($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +125,7 @@ class Doc_ModuleController extends DocController
|
||||||
array('moduleName' => $module)
|
array('moduleName' => $module)
|
||||||
);
|
);
|
||||||
} catch (DocException $e) {
|
} catch (DocException $e) {
|
||||||
throw new Zend_Controller_Action_Exception($e->getMessage(), 404);
|
$this->httpNotFound($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue