1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fixes #1441 No button to refresh plugins list

This commit is contained in:
Cameron
2016-04-04 18:57:11 -07:00
parent c2c9246063
commit 9a1eb43561

View File

@@ -155,7 +155,7 @@ class admin_shortcodes
{ {
$help_text = $ns->tablerender($tmp['caption'],$tmp['text'],'e_help',true); $help_text = $ns->tablerender($tmp['caption'],$tmp['text'],'e_help',true);
} }
$helpfile = ''; $helpfile = '';
if(strpos(e_SELF, e_ADMIN_ABS) !== FALSE) if(strpos(e_SELF, e_ADMIN_ABS) !== FALSE)
@@ -182,12 +182,15 @@ class admin_shortcodes
$helpfile = $plugpath; $helpfile = $plugpath;
} }
} }
if (!$helpfile) { return ''; }
ob_start(); if(!empty($helpfile))
include_once($helpfile); {
$help_text .= ob_get_contents(); ob_start();
ob_end_clean(); include_once($helpfile);
$help_text .= ob_get_contents();
ob_end_clean();
}
return $help_text; return $help_text;
} }