mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 18:32:44 +02:00
Code optimization for speed and reduced memory usage.
This commit is contained in:
@@ -17,7 +17,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
}
|
||||
else
|
||||
{
|
||||
$path = (strstr(SITEBUTTON, 'http:') ? SITEBUTTON : e_IMAGE.SITEBUTTON);
|
||||
$path = (strpos(SITEBUTTON, 'http:') !== false ? SITEBUTTON : e_IMAGE.SITEBUTTON);
|
||||
}
|
||||
|
||||
if($parm['type'] == 'email' || $parm == 'email') // (retain {} constants )
|
||||
|
@@ -17,7 +17,7 @@
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
// echo "parm=".$parm; //FIXME - just for testing only.
|
||||
|
||||
if(strstr(SITEBUTTON, "://")) // external url.
|
||||
if(strpos(SITEBUTTON, "://") !== false) // external url.
|
||||
{
|
||||
$path = SITEBUTTON;
|
||||
}
|
||||
|
Reference in New Issue
Block a user