@@ -235,7 +235,7 @@ |
||
| 235 | 235 | /** |
| 236 | 236 | * Convert path to indeces |
| 237 | 237 | * |
| 238 | - * @param $path |
|
| 238 | + * @param string $path |
|
| 239 | 239 | * |
| 240 | 240 | * @return bool|\library\storage\Document |
| 241 | 241 | * @throws \Exception |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $cmsComponent->setParameter(CmsComponent::PARAMETER_MAIN_NAV_CLASS, CmsComponent::PARAMETER_CONFIGURATION); |
| 56 | 56 | if (isset($request::$post[CmsComponent::POST_PARAMETER_TITLE])) { |
| 57 | 57 | $cmsComponent->storage->getApplicationComponents()->addApplicationComponent($request::$post); |
| 58 | - header('Location: ' . $request::$subfolders . $cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX) . '/configuration/application-components'); |
|
| 58 | + header('Location: '.$request::$subfolders.$cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX).'/configuration/application-components'); |
|
| 59 | 59 | exit; |
| 60 | 60 | } |
| 61 | 61 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $applicationComponent = $cmsComponent->storage->getApplicationComponents()->getApplicationComponentBySlug($request::$get[CmsComponent::GET_PARAMETER_SLUG]); |
| 72 | 72 | if (isset($request::$post[CmsComponent::POST_PARAMETER_TITLE])) { |
| 73 | 73 | $cmsComponent->storage->getApplicationComponents()->saveApplicationComponent($request::$get[CmsComponent::GET_PARAMETER_SLUG], $request::$post); |
| 74 | - header('Location: ' . $request::$subfolders . $cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX) . '/configuration/application-components'); |
|
| 74 | + header('Location: '.$request::$subfolders.$cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX).'/configuration/application-components'); |
|
| 75 | 75 | exit; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | private function deleteRoute($request, $cmsComponent) |
| 86 | 86 | { |
| 87 | 87 | $cmsComponent->storage->getApplicationComponents()->deleteApplicationComponentBySlug($request::$get[CmsComponent::GET_PARAMETER_SLUG]); |
| 88 | - header('Location: ' . $request::$subfolders . $cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX) . '/configuration/application-components'); |
|
| 88 | + header('Location: '.$request::$subfolders.$cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX).'/configuration/application-components'); |
|
| 89 | 89 | exit; |
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | \ No newline at end of file |