|
|
@@ -85,43 +85,11 @@ class Router
|
|
|
{
|
|
|
if (!class_exists($this->controllerClass))
|
|
|
{
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $this->controllerClass,
|
|
|
- 'Debug class_exists',
|
|
|
- class_exists($this->controllerClass)
|
|
|
- );
|
|
|
-
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (!method_exists($this->controllerClass, $this->controllerMethod))
|
|
|
{
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $this->controllerMethod,
|
|
|
- 'Debug method_exists',
|
|
|
- method_exists($this->controllerClass, $this->controllerMethod)
|
|
|
- );
|
|
|
-
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- if (!is_callable([$this->controllerClass, $this->controllerMethod]))
|
|
|
- {
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- [$this->controllerClass, $this->controllerMethod],
|
|
|
- 'Debug Controller',
|
|
|
- is_callable([$this->controllerClass, $this->controllerMethod])
|
|
|
- );
|
|
|
-
|
|
|
return false;
|
|
|
}
|
|
|
|