Changeset 53 for trunk

Show
Ignore:
Timestamp:
14/02/11 02:04:17 (15 months ago)
Author:
bombadil
Message:

correcciones en rutas

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/Oak.php

    r51 r53  
    1919set_include_path(get_include_path() . PATH_SEPARATOR . $modules_dir); 
    2020set_include_path(get_include_path() . PATH_SEPARATOR . $data_dir); 
     21 
     22/* En caso de que estemos dentro de public... subimos un nivel */ 
     23 
     24if (!is_dir("conf")) { 
     25        chdir(".."); 
     26} 
    2127 
    2228/* Cargamos el resto de la configuración */ 
  • trunk/src/Oak/Menu.php

    r52 r53  
    2626     */ 
    2727    function __construct( &$access ) { 
    28                 if (($access instanceof Oak_Access) and file_exists("../conf/menu.yml")) { 
     28                if (($access instanceof Oak_Access) and file_exists("conf/menu.yml")) { 
    2929                        $this->cut = array(); 
    3030                        $this->logout = array(); 
    3131                        $this->opt = array(); 
    32                         $this->menu = Horde_Yaml::loadFile("../conf/menu.yml"); 
     32                        $this->menu = Horde_Yaml::loadFile("conf/menu.yml"); 
    3333                        $this->checkMenu($access); 
    3434                }