1
0
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:
Cameron
2014-07-03 19:45:50 -07:00
parent 9ccc6dd78b
commit de3cbe913d
3 changed files with 16 additions and 6 deletions

View File

@@ -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";
}