From 4d120b829ad657dc329282ae6969cf1b988e544c Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Wed, 29 Nov 2017 11:31:26 +0100
Subject: [js] Move all our fixes into one file, add browser history/URL fix
for messages
Hides all the ugly message[]= entries from the URL string, so copy/paste won't
show the message out of context again
---
inc/render.inc.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
(limited to 'inc')
diff --git a/inc/render.inc.php b/inc/render.inc.php
index 53e2f314..13262c1d 100644
--- a/inc/render.inc.php
+++ b/inc/render.inc.php
@@ -107,8 +107,7 @@ class Render
-
-
+
';
foreach ($modules as $module) {
$files = $module->getScripts($module != $pageModule);
@@ -213,7 +212,7 @@ class Render
*/
public static function parse($template, $params = false, $module = false)
{
- if ($module === false) {
+ if ($module === false && class_exists('Page')) {
$module = Page::getModule()->getIdentifier();
}
// Load html snippet
--
cgit v1.2.3-55-g7522