diff --git a/core/layout/main.php b/core/layout/main.php
index 48babb48..4507da51 100755
--- a/core/layout/main.php
+++ b/core/layout/main.php
@@ -116,12 +116,9 @@
- getUrl(0) === 'theme' OR
- $this->getUrl(0) === 'config' OR
- $this->getUrl(0) === 'install' OR
- $this->getUrl(0) === 'maintenance' OR
- $this->getUrl(0) === 'page' OR
- $this->getUrl(0) === 'user' ) { ?>
+ getData(['page',$this->getUrl(0)])) OR
+ is_null($this->getData(['module',$this->getUrl(0)])) OR
+ $this->getUrl(1) !== '' ) { ?>