1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Display Theme/Plugin update shortcode on dashboard only.

This commit is contained in:
Cameron
2017-02-02 11:59:14 -08:00
parent f7a14d29ae
commit 56b3cf7915
3 changed files with 7 additions and 16 deletions

View File

@@ -415,9 +415,9 @@ class admin_shortcodes
function sc_admin_latest($parm)
{
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
if(($parm == 'infopanel' || $parm == 'flexpanel') && !deftrue('e_ADMIN_HOME'))
{
return;
return null;
}
if (ADMIN) {
@@ -1110,7 +1110,7 @@ class admin_shortcodes
function sc_admin_status($parm)
{
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
if(($parm == 'infopanel' || $parm == 'flexpanel') && !deftrue('e_ADMIN_HOME'))
{
return;
}
@@ -1321,11 +1321,12 @@ Inverse 10 <span class="badge badge-inverse">10</span>
function sc_admin_addon_updates()
{
if(!getperms('0'))
if(!getperms('0') || !deftrue('e_ADMIN_HOME'))
{
return null;
}
$themes = $this->getUpdateable('theme');
$plugins = $this->getUpdateable('plugin');