diff --git a/controller/Controller.php b/controller/Controller.php index 4ce427f9..3e14b603 100644 --- a/controller/Controller.php +++ b/controller/Controller.php @@ -2,7 +2,7 @@ class Controller { - public function carga404() { + public function carga404($admin) { include 'view/admin/error-404.php'; } public function muestraHome() { diff --git a/index.php b/index.php index 389d92bc..cc3786af 100644 --- a/index.php +++ b/index.php @@ -61,7 +61,7 @@ $c->muestraFichaProducto((int)$array_ruta[2]); } else { $c = new Controller; - $c->carga404(); + $c->carga404(true); } // Quiere hacer consultas a la api de la aplicaciĆ³n @@ -152,6 +152,6 @@ $fc->muestraPanelUsuario(); } else { // No ha encontrado la ruta a la que quiere acceder el usuario $c = new Controller; - $c->carga404(); + $c->carga404(false); } } diff --git a/view/admin/error-404.php b/view/admin/error-404.php index 00c9a583..c498b768 100644 --- a/view/admin/error-404.php +++ b/view/admin/error-404.php @@ -43,7 +43,11 @@
- Volver a la home + + Volver a la home + + Volver a la home +