Changeset 3144 in subversion


Ignore:
Timestamp:
Nov 30, 2009 6:55:33 AM (4 years ago)
Author:
alec
Message:
  • don't warn about lack of plugin's config file, it's absolutely optional
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_plugin.php

    r3102 r3144  
    6060    $fpath = $this->home.'/'.$fname; 
    6161    $rcmail = rcmail::get_instance(); 
    62     if (!$rcmail->config->load_from_file($fpath, false)) { 
     62    if (is_file($fpath) && !$rcmail->config->load_from_file($fpath, false)) { 
    6363      raise_error(array('code' => 527, 'type' => 'php', 'message' => "Failed to load config from $fpath"), true, false); 
    6464      return false; 
Note: See TracChangeset for help on using the changeset viewer.