Development

Changeset 1792

You must first sign up to be able to contribute.

Changeset 1792

Show
Ignore:
Timestamp:
08/23/06 23:24:47 (2 years ago)
Author:
fabien
Message:

pake: moved exception handling to pakeFunction file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/trunk/bin/pake.php

    r1791 r1792  
    1313include_once('pake/pakeFunction.php'); 
    1414 
    15 // register our default exception handler 
    16 function pake_exception_default_handler($exception) 
    17 { 
    18   $e = new pakeException(); 
    19   $e->render($exception); 
    20 } 
    21 set_exception_handler('pake_exception_default_handler'); 
    22  
    2315if (basename(__FILE__) == basename($_SERVER['SCRIPT_NAME'])) 
    2416{ 
  • tools/pake/trunk/lib/pake/pakeFunction.php

    r1791 r1792  
    343343  } 
    344344} 
     345 
     346// register our default exception handler 
     347function pake_exception_default_handler($exception) 
     348{ 
     349  $e = new pakeException(); 
     350  $e->render($exception); 
     351} 
     352set_exception_handler('pake_exception_default_handler');