Browse Source

CP modules 404 error ability

Vova Tkach 6 years ago
parent
commit
0f1f8db2be
1 changed files with 5 additions and 0 deletions
  1. 5 0
      modules/modules.go

+ 5 - 0
modules/modules.go

@@ -330,6 +330,11 @@ func (this *Modules) XXXBackEnd(wrap *wrapper.Wrapper) bool {
 		if mod.Back != nil {
 		if mod.Back != nil {
 			sidebar_left, content, sidebar_right := mod.Back(wrap)
 			sidebar_left, content, sidebar_right := mod.Back(wrap)
 
 
+			// Display standart 404 error page
+			if sidebar_left == "" && content == "" && sidebar_right == "" {
+				return false
+			}
+
 			// Prepare CP page
 			// Prepare CP page
 			body_class := "cp"
 			body_class := "cp"
 			if sidebar_left != "" {
 			if sidebar_left != "" {