Changeset 4598
- Timestamp:
- 08/22/10 22:49:05 (18 months ago)
- Location:
- trunk/core
- Files:
-
- 2 edited
-
bootstrap/clansuite.application.php (modified) (3 diffs)
-
router.core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/bootstrap/clansuite.application.php
r4578 r4598 31 31 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 32 32 * @link http://www.clansuite.com 33 * 33 * 34 34 * @version SVN: $Id$ 35 35 */ … … 42 42 43 43 # Security Handler 44 if (defined('IN_CS') == false)44 if (defined('IN_CS') === false) 45 45 { 46 46 die('Clansuite not loaded. Direct Access forbidden.'); … … 541 541 $response = self::$injector->instantiate('Clansuite_HttpResponse'); 542 542 543 544 543 /** 545 544 * Setup Frontcontroller and pass Request and Response -
trunk/core/router.core.php
r4597 r4598 1054 1054 if(class_exists($classname, false)) 1055 1055 { 1056 # WATCH IT! method_exists works on objects, is_callable on classes! ,) 1057 if(is_callable($classname, $method)) 1056 # WATCH IT! 1057 # method_exists works on objects? i just have a classname 1058 # is_callable on classes ?! 1059 # @todo how to get the object back for a classname? 1060 if(true === in_array($method, get_class_methods($classname))) 1058 1061 { 1059 Clansuite_Debug::firebug('(OK) Route is dispatchable: '. $filename .' '. $classname .'->'. $method);1062 #Clansuite_Debug::firebug('(OK) Route is dispatchable: '. $filename .' '. $classname .'->'. $method); 1060 1063 return true; 1061 1064 } 1062 else1063 {1064 return false;1065 }1066 1065 } 1067 else 1068 { 1069 return false; 1070 } 1071 } 1072 else 1073 { 1074 Clansuite_Debug::firebug('(ERROR) Route not dispatchable: '. $filename .' '. $classname .'->'. $method); 1075 return false; 1076 } 1066 } 1067 1068 #Clansuite_Debug::firebug('(ERROR) Route not dispatchable: '. $filename .' '. $classname .'->'. $method); 1069 return false; 1077 1070 } 1078 1071
Note: See TracChangeset
for help on using the changeset viewer.
