mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 08:34:09 +02:00
Code optimization for speed and reduced memory usage.
This commit is contained in:
@@ -291,11 +291,9 @@ class e_parse_shortcode
|
||||
$methods = get_class_methods($class);
|
||||
foreach($methods as $meth)
|
||||
{
|
||||
if(substr($meth,0,3) == 'sc_')
|
||||
if(strpos($meth,'sc_') === 0)
|
||||
{
|
||||
$this->addonOverride[$meth] = $class;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1005,6 +1003,7 @@ class e_parse_shortcode
|
||||
*/
|
||||
function doCode($matches)
|
||||
{
|
||||
// e107::getDebug()->log($matches[1]);
|
||||
// print_a($matches);
|
||||
|
||||
if(in_array($matches[0],$this->ignoreCodes)) // Ignore all {e_PLUGIN}, {THEME} etc. otherwise it will just return blank for these items.
|
||||
|
Reference in New Issue
Block a user