Consistent use of return , payment refund handling
This commit is contained in:
@@ -105,9 +105,9 @@ class Config extends Kohana_Config {
|
||||
* security).
|
||||
*/
|
||||
public static function modules() {
|
||||
static $return = array();
|
||||
static $result = array();
|
||||
|
||||
if (! count($return)) {
|
||||
if (! count($result)) {
|
||||
// We need to know our site here, so that we can subsequently load our enabled modules.
|
||||
if (PHP_SAPI === 'cli') {
|
||||
if (! $site = Minion_CLI::options('site'))
|
||||
@@ -118,10 +118,10 @@ class Config extends Kohana_Config {
|
||||
}
|
||||
|
||||
foreach (ORM::factory('Module')->list_external() as $mo)
|
||||
$return[$mo->name] = MODPATH.$mo->name;
|
||||
$result[$mo->name] = MODPATH.$mo->name;
|
||||
}
|
||||
|
||||
return $return;
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function module_config($item) {
|
||||
|
Reference in New Issue
Block a user