Changeset 3102 in subversion
- Timestamp:
- Nov 9, 2009 11:18:58 AM (4 years ago)
- Location:
- trunk/roundcubemail/program/include
- Files:
-
- 2 edited
-
rcube_config.php (modified) (1 diff)
-
rcube_plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_config.php
r2760 r3102 133 133 * @return booelan True on success, false on failure 134 134 */ 135 public function load_from_file($fpath )135 public function load_from_file($fpath, $merge = true) 136 136 { 137 137 if (is_file($fpath) && is_readable($fpath)) { 138 138 include($fpath); 139 139 if (is_array($rcmail_config)) { 140 $this->prop = array_merge($this->prop, $rcmail_config);140 $this->prop = $merge ? array_merge($this->prop, $rcmail_config) : $this->prop + $rcmail_config; 141 141 return true; 142 142 } -
trunk/roundcubemail/program/include/rcube_plugin.php
r3076 r3102 60 60 $fpath = $this->home.'/'.$fname; 61 61 $rcmail = rcmail::get_instance(); 62 if (!$rcmail->config->load_from_file($fpath )) {62 if (!$rcmail->config->load_from_file($fpath, false)) { 63 63 raise_error(array('code' => 527, 'type' => 'php', 'message' => "Failed to load config from $fpath"), true, false); 64 64 return false;
Note: See TracChangeset
for help on using the changeset viewer.
