1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Fixes #1345 - Confusion over js cache. Use debug mode to enable if still required for some reason.

This commit is contained in:
Cameron
2016-02-09 18:17:41 -08:00
parent e7f5155703
commit 69417752b1

View File

@@ -1799,12 +1799,21 @@ $text .= "
$text .= " $text .= "
</tbody> </tbody>
</table> </table>";
if(E107_DEBUG_LEVEL > 0)
{
$text .= "
<table class='table adminform' style='margin-top: 20px'> <table class='table adminform' style='margin-top: 20px'>
<colgroup> <colgroup>
<col class='col-label' /> <col class='col-label' />
<col class='col-control' /> <col class='col-control' />
</colgroup> </colgroup>
<thead>
<tr><th colspan='2'><span class='label label-warning'>DEPRECATED</span> Available only in DEBUG mode</th></tr>
</thead>
<tbody> <tbody>
<tr> <tr>
<td>".PRFLAN_248."</td> <td>".PRFLAN_248."</td>
@@ -1837,7 +1846,20 @@ $text .= "
"; ";
$text .= " $text .= "
</tbody></table> </tbody></table>";
}
else
{
$text .= "<div>".
$frm->hidden('e_jslib_nocombine',1).
$frm->hidden('e_jslib_nocache', 1).
$frm->hidden('e_jslib_nobcache',1).
$frm->hidden('e_jslib_gzip',0).
"</div>";
}
$text .= "
".pref_submit('javascript')." ".pref_submit('javascript')."
</fieldset> </fieldset>