Show
Ignore:
Timestamp:
08/16/10 16:49:12 (21 months ago)
Author:
ort
Message:

fix config loader

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/engine/modules/viewer/Viewer.class.php

    r976 r984  
    168168        public function Init($bLocal=false) { 
    169169                $this->Hook_Run('viewer_init_start',compact('bLocal')); 
     170                /** 
     171                 * Load template config 
     172                 */ 
     173                if (!$bLocal) { 
     174                        if(file_exists(Config::Get('path.smarty.template').'/settings/config/config.php')) { 
     175                                Config::LoadFromFile(Config::Get('path.smarty.template').'/settings/config/config.php',false); 
     176                        } 
     177                } 
    170178                /** 
    171179                 * Заголовок HTML страницы