Skip to content
Browse files

add support for default config

  • Loading branch information...
1 parent 97129ad commit b884e0d0a79552a486e054a81adadc591c6e2587 @romaninsh romaninsh committed Mar 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ApiCLI.php
View
1 lib/ApiCLI.php
@@ -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);

0 comments on commit b884e0d

Please sign in to comment.
Something went wrong with that request. Please try again.