mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 23:56:58 +02:00
Tweak developer mode check and message
This commit is contained in:
@@ -538,13 +538,17 @@ TMPO;
|
||||
|
||||
private function checkDeveloperMode()
|
||||
{
|
||||
if(deftrue('e_DEVELOPER') && (strpos(e_SELF,'localhost') === false) && (strpos(e_SELF,'127.0.0.1') === false))
|
||||
$pref = e107::getPref();
|
||||
$tp = e107::getParser();
|
||||
|
||||
if($pref['developer'] && (strpos(e_SELF,'localhost') === false) && (strpos(e_SELF,'127.0.0.1') === false))
|
||||
{
|
||||
e107::getMessage()->addWarning(LAN_DEVELOPERMODE_CHECK);
|
||||
e107::getMessage()->addWarning($tp->toHTML(LAN_DEVELOPERMODE_CHECK, true));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function checkDependencies()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user