Changeset 879

Show
Ignore:
Timestamp:
08/22/07 22:51:13 (1 year ago)
Author:
schst
Message:

Do not pass parameters to register() method, whitespace fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/stubExceptionHandler.php

    r473 r879  
    3131     */ 
    3232    protected static $response; 
    33      
     33 
    3434    /** 
    3535     * registers the exception handler 
     
    5050            self::$request->cancel(); 
    5151        } 
    52          
     52 
    5353        if (null == self::$response) { 
    5454            self::$response = new stubBaseResponse(); 
    5555        } 
    56          
     56 
    5757        if (stubRegistry::hasConfig('net.stubbles.mode') == true && stubRegistry::getConfig('net.stubbles.mode') == 'test') { 
    5858            if ($exception instanceof stubException) { 
     
    6565            self::$response->replaceData(file_get_contents(stubConfig::getConfigPath() . '/errors/500.html')); 
    6666        } 
    67          
    68         // send the response because the request will end right after this  
     67 
     68        // send the response because the request will end right after this 
    6969        // method has been finished 
    7070        self::$response->send(); 
     
    8080    public function preProcess(stubRequest $request, stubSession $session, stubResponse $response) 
    8181    { 
    82         self::register($request, $response); 
     82        self::register(); 
    8383        self::$request  = $request; 
    8484        self::$response = $response;