Changeset 4614


Ignore:
Timestamp:
09/06/10 21:52:15 (17 months ago)
Author:
vain
Message:
  • minor changes
Location:
trunk/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/config/ini.config.php

    r4599 r4614  
    104104        } 
    105105 
    106  
    107106        # when ini_filename exists, get old config array 
    108107        if(is_file($ini_filename) === true) 
     
    115114        else 
    116115        { 
    117  
    118116            # create file 
    119117            touch($ini_filename); 
     
    215213    { 
    216214        # check ini_filename exists 
    217         if(is_file($filename) === false) 
     215        if(is_file($filename) === false or is_readable($filename) === false) 
    218216        { 
    219217            throw new Clansuite_Exception('File not found: '.$filename, 4); 
  • trunk/core/factories/config.factory.php

    r4599 r4614  
    103103    { 
    104104        $handler = self::getHandler($configfile); 
    105         return $handler::readConfig($configfile); 
     105        return $handler->readConfig($configfile); 
    106106    } 
    107107 
     
    135135            { 
    136136                # instantiate and return the specific confighandler with the $configfile to read 
    137                 #return new $class(); 
    138                 return $class::getInstance(); 
     137                #return $class::getInstance(); 
     138                #call_user_func($class.'::getInstance'); 
     139                return new $class(); 
    139140            } 
    140141            else 
  • trunk/core/filters/maintenance.filter.php

    r4599 r4614  
    7070            $html = $smarty->fetch( ROOT_THEMES . 'core/templates/maintenance.tpl', true); 
    7171 
    72             $response::setContent($html); 
    73             $response::flush(); 
     72            $response->setContent($html); 
     73            $response->flush(); 
    7474            exit(); 
    7575        } 
  • trunk/core/router.core.php

    r4599 r4614  
    8484    public function __construct(Clansuite_HttpRequest $request) 
    8585    { 
    86         $request_uri = $request::getRequestURI(); 
     86        $request_uri = $request->getRequestURI(); 
    8787 
    8888        # clean the incomming uri 
     
    11041104    public function addRoutesOfModule($modulename) 
    11051105    { 
    1106         self:updateApplicationRoutes($modulename); 
     1106        self::updateApplicationRoutes($modulename); 
    11071107    } 
    11081108 
     
    12131213interface Clansuite_Router_Interface 
    12141214{ 
    1215     function addRoute($name, array $route); 
     1215    function addRoute($url_pattern, array $route_options = null); 
    12161216    function addRoutes(array $routes); 
    12171217    function getRoutes(); 
Note: See TracChangeset for help on using the changeset viewer.