Fix 404 usage
modifié: core/lib/Thelia/Controller/Admin/ExportController.php modifié: core/lib/Thelia/Controller/Admin/ImportController.php
This commit is contained in:
@@ -65,7 +65,7 @@ class ExportController extends BaseAdminController
|
|||||||
public function export($id)
|
public function export($id)
|
||||||
{
|
{
|
||||||
if (null === $export = $this->getExport($id)) {
|
if (null === $export = $this->getExport($id)) {
|
||||||
return $this->render("404");
|
return $this->pageNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -281,7 +281,7 @@ class ExportController extends BaseAdminController
|
|||||||
public function exportView($id)
|
public function exportView($id)
|
||||||
{
|
{
|
||||||
if (null === $export = $this->getExport($id)) {
|
if (null === $export = $this->getExport($id)) {
|
||||||
return $this->render("404");
|
return $this->pageNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class ImportController extends BaseAdminController
|
|||||||
public function import($id)
|
public function import($id)
|
||||||
{
|
{
|
||||||
if (null === $import = $this->getImport($id)) {
|
if (null === $import = $this->getImport($id)) {
|
||||||
return $this->render("404");
|
return $this->pageNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
$archiveBuilderManager = $this->getArchiveBuilderManager($this->container);
|
$archiveBuilderManager = $this->getArchiveBuilderManager($this->container);
|
||||||
@@ -339,7 +339,7 @@ class ImportController extends BaseAdminController
|
|||||||
public function importView($id)
|
public function importView($id)
|
||||||
{
|
{
|
||||||
if (null === $import = $this->getImport($id)) {
|
if (null === $import = $this->getImport($id)) {
|
||||||
return $this->render("404");
|
return $this->pageNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user