Consistent use of return , payment refund handling

This commit is contained in:
Deon George
2013-04-05 23:50:08 +11:00
parent 43dfd88bce
commit 52d9005b64
30 changed files with 255 additions and 210 deletions

View File

@@ -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) {