update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* Klasa FrontControllera
|
||||
*
|
||||
@@ -168,7 +168,8 @@ class FrontController {
|
||||
if((!method_exists($this->controllerObj, $method) && !method_exists($this->controllerObj, $method.'Action'))) {
|
||||
$this->method = 'Index';
|
||||
}
|
||||
if($this->loadError && ($this->method=='Index' && $this->route['param']['urlParam']!='')) {
|
||||
$urlParam = isset($this->route['param']['urlParam']) ? $this->route['param']['urlParam'] : '';
|
||||
if($this->loadError && ($this->method=='Index' && $urlParam!='')) {
|
||||
//Utils::ArrayDisplay($this->route, __FILE__.' Line: '.__LINE__);
|
||||
$this->method = 'Error404';
|
||||
}
|
||||
@@ -651,4 +652,4 @@ class FrontController {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user