mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
Fixes #321 - custom folder names working again. JS/CSS comments shown during Debug mode only.
This commit is contained in:
@@ -1113,7 +1113,7 @@ class e_jsmanager
|
||||
}
|
||||
$tp = e107::getParser();
|
||||
echo "\n";
|
||||
if($label) //TODO - print comments only if site debug is on
|
||||
if($label && E107_DEBUG_LEVEL > 0)
|
||||
{
|
||||
echo $external ? "<!-- [JSManager] ".$label." -->\n" : "/* [JSManager] ".$label." */\n\n";
|
||||
}
|
||||
@@ -1262,7 +1262,7 @@ class e_jsmanager
|
||||
switch ($type)
|
||||
{
|
||||
case 'js':
|
||||
if($label) //TODO - print comments only if site debug is on
|
||||
if($label && E107_DEBUG_LEVEL > 0)
|
||||
{
|
||||
echo "<!-- [JSManager] ".$label." -->\n";
|
||||
}
|
||||
@@ -1285,7 +1285,7 @@ class e_jsmanager
|
||||
break;
|
||||
|
||||
case 'css':
|
||||
if($label) //TODO - print comments only if site debug is on
|
||||
if($label && E107_DEBUG_LEVEL > 0)
|
||||
{
|
||||
echo "<!-- [CSSManager] ".$label." -->\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user