mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Backward compatibility fix. Javascripts may have failed to load in the admin area for some v1.x plugins.
This commit is contained in:
@@ -336,12 +336,22 @@ $jslib->renderHeader('admin', false);
|
||||
e107::getJs()->renderJs('header', 2);
|
||||
e107::getJs()->renderJs('header_inline', 2);
|
||||
|
||||
//DEPRECATED - use e107::getJs()->headerFile('{e_PLUGIN}myplug/js/my.js', $zone = 2)
|
||||
if (isset($eplug_js) && $eplug_js)
|
||||
/* @deprecated -use e107::js('myplug','js/my.js') instead; */
|
||||
if (!empty($eplug_js))
|
||||
{
|
||||
e107::getMessage()->addDebug('Deprecated $eplug_js method detected. Use e107::js() function inside an e_header.php file instead.'.print_a($eplug_js,true));
|
||||
e107::getMessage()->addDebug('Deprecated $eplug_js method detected. Use e107::js() function inside an e_header.php file instead.'.print_a($eplug_js,true));
|
||||
echo "\n<!-- eplug_js -->\n";
|
||||
echo "<script type='text/javascript' src='{$eplug_js}'></script>\n";
|
||||
|
||||
if(!is_array($eplug_js))
|
||||
{
|
||||
$eplug_js = array($eplug_js);
|
||||
}
|
||||
|
||||
foreach($eplug_js as $vjss)
|
||||
{
|
||||
echo "<script type='text/javascript' src='{$vjss}'></script>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//FIXME - theme.js/user.js should be registered/rendered through e_jsmanager
|
||||
|
@@ -35,7 +35,7 @@ if (!isset($COMMENT_MENU_TEMPLATE))
|
||||
$COMMENT_MENU_TEMPLATE['item'] = "<li>
|
||||
{CM_URL_PRE}{CM_TYPE} {CM_HEADING}{CM_URL_POST}
|
||||
<div>{CM_COMMENT}</div>
|
||||
<small class='muted'>{CM_AUTHOR} {CM_DATESTAMP}</small>
|
||||
<small class='text-muted muted'>{CM_AUTHOR} {CM_DATESTAMP}</small>
|
||||
</li>";
|
||||
|
||||
$COMMENT_MENU_TEMPLATE['end'] = "</ul>";
|
||||
|
@@ -83,7 +83,7 @@ else
|
||||
{ONLINE_MEMBER_NEWEST}
|
||||
<li>
|
||||
{ONLINE_MOST}
|
||||
<small class='muted'>
|
||||
<small class='text-muted muted'>
|
||||
{ONLINE_MOST_GUESTS}
|
||||
{ONLINE_MOST_MEMBERS}
|
||||
{ONLINE_MOST_DATESTAMP}
|
||||
|
Reference in New Issue
Block a user