Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
add support for default config
Browse files Browse the repository at this point in the history
  • Loading branch information
Romans Malinovskis committed Mar 26, 2011
1 parent 97129ad commit b884e0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ApiCLI.php
Expand Up @@ -118,6 +118,7 @@ function getConfig($path, $default_value = '**undefined_value**'){
* try { $api->getConfig($path); } catch ExceptionNotConfigured($e) { $var_is_set=false; };
*/
if(is_null($this->config)){
$this->readConfig('config-default.php');
$this->readConfig();
}
$parts = explode('/',$path);
Expand Down

0 comments on commit b884e0d

Please sign in to comment.