1
0
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:
Cameron
2020-12-20 11:50:10 -08:00
parent 6b5cc07929
commit 601df26d51
91 changed files with 522 additions and 482 deletions

View File

@@ -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.