Skip to content

Commit

Permalink
prepare for some addon class naming standards
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretR committed Feb 14, 2013
1 parent 4587940 commit 19436eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_handlers/e107_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ public static function getAddon($pluginName, $addonName, $className = true)
$filename = $addonName; // e.g. 'e_cron';

// fixme, temporary adding 's' to className, should be core fixed, better naming
if(true === $className) $className = $pluginName.'_'.substr($addonName, 2).'s'; // remove 'e_'
if(true === $className) $className = $pluginName.'_'.substr($addonName, 2); // remove 'e_'

$elist = self::getPref($filename.'_list');
if(!isset($elist[$pluginName])) return null;
Expand Down

0 comments on commit 19436eb

Please sign in to comment.