mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 03:32:12 +00:00
Bugfixes
This commit is contained in:
@@ -79,16 +79,15 @@ class RouterGroup extends RouterEntry {
|
||||
}
|
||||
|
||||
if(isset($settings['exceptionHandler'])) {
|
||||
$handlers = is_array($settings['exceptionHandler']) ? $settings['exceptionHandler'] : array($settings['exceptionHandler']);
|
||||
$this->setExceptionHandlers($handlers);
|
||||
$this->setExceptionHandlers((array)$settings['exceptionHandler']);
|
||||
}
|
||||
|
||||
if(isset($settings['domain'])) {
|
||||
$domains = is_array($settings['domain']) ? $settings['domain'] : array($settings['domain']);
|
||||
$this->setDomains($domains);
|
||||
$this->setDomains((array)$settings['domain']);
|
||||
}
|
||||
|
||||
return parent::setData($settings);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user