Commit ef3c5ab9 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Avertissement en cas d'action inconnue

parent 12cd1b09
...@@ -159,6 +159,7 @@ class OseAdmin ...@@ -159,6 +159,7 @@ class OseAdmin
if (file_exists($this->getOseDir() . 'admin/actions/' . $action . '.php')) { if (file_exists($this->getOseDir() . 'admin/actions/' . $action . '.php')) {
require_once $this->getOseDir() . 'admin/actions/' . $action . '.php'; require_once $this->getOseDir() . 'admin/actions/' . $action . '.php';
} else { } else {
$c->println('Action "'.$action.'" inconnue.', $c::COLOR_RED);
require_once $this->getOseDir() . 'admin/actions/help.php'; require_once $this->getOseDir() . 'admin/actions/help.php';
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment