Changeset 4695 in subversion


Ignore:
Timestamp:
Apr 25, 2011 5:54:35 AM (2 years ago)
Author:
alec
Message:
  • Use shortest include path for better performance
Location:
trunk/roundcubemail/program/include
Files:
3 edited

Legend:

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

    r4678 r4695  
    5858// possible not compatible libraries (i.e PEAR) to be included 
    5959// instead the ones provided by RC 
    60 $include_path = INSTALL_PATH . 'program' . PATH_SEPARATOR; 
    61 $include_path.= INSTALL_PATH . 'program/include' . PATH_SEPARATOR; 
    62 $include_path.= INSTALL_PATH . 'program/lib' . PATH_SEPARATOR; 
     60$include_path = INSTALL_PATH . 'program/lib' . PATH_SEPARATOR; 
    6361$include_path.= ini_get('include_path'); 
    6462 
     
    8987    $filename = preg_replace( 
    9088        array( 
     89            '/rcube_/', 
    9190            '/MDB2_(.+)/', 
    9291            '/Mail_(.+)/', 
     
    9796        ), 
    9897        array( 
     98            INSTALL_PATH . 'program/include/rcube_', 
    9999            'MDB2/\\1', 
    100100            'Mail/\\1', 
  • trunk/roundcubemail/program/include/main.inc

    r4678 r4695  
    2727 */ 
    2828 
    29 require_once 'lib/utf7.inc'; 
     29require_once 'utf7.inc'; 
    3030require_once INSTALL_PATH . 'program/include/rcube_shared.inc'; 
    3131 
  • trunk/roundcubemail/program/include/rcmail.php

    r4682 r4695  
    11801180    } 
    11811181    else { 
    1182       @include_once('lib/des.inc'); 
     1182      @include_once 'des.inc'; 
    11831183 
    11841184      if (function_exists('des')) { 
     
    12321232    } 
    12331233    else { 
    1234       @include_once('lib/des.inc'); 
     1234      @include_once 'des.inc'; 
    12351235 
    12361236      if (function_exists('des')) { 
Note: See TracChangeset for help on using the changeset viewer.