Changeset 201 for trunk/trax/vendor/trax/action_view
- Timestamp:
- 05/25/06 02:58:10 (6 years ago)
- Location:
- trunk/trax/vendor/trax/action_view
- Files:
-
- 2 modified
-
helpers.php (modified) (4 diffs)
-
helpers/asset_tag_helper.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers.php
r199 r201 57 57 * Current controller object 58 58 * 59 * Local copy of $GLOBALS['current_controller_object']<br />59 * Local copy of Trax::$current_controller_object<br /> 60 60 * <b>NB:</b> {@link object()} faults if this does not contain a 61 61 * valid instance of ActionController. … … 67 67 * Current controller name 68 68 * 69 * Local copy of $GLOBALS['current_controller_name']69 * Local copy of Trax::$current_controller_name 70 70 * @var string 71 71 */ … … 75 75 * Current controller path 76 76 * 77 * Local copy of $GLOBALS['current_controller_path']77 * Local copy of Trax::$current_controller_path 78 78 * @var string 79 79 */ … … 105 105 // Copy controller information from $GLOBALS 106 106 $this->controller_name = 107 (array_key_exists('current_controller_name',$GLOBALS) 108 && $GLOBALS['current_controller_name']) 109 ? $GLOBALS['current_controller_name'] : null; 107 !is_null(Trax::$current_controller_name) 108 ? Trax::$current_controller_name : null; 110 109 $this->controller_path = 111 (array_key_exists('current_controller_path', $GLOBALS) 112 && $GLOBALS['current_controller_path']) 113 ? $GLOBALS['current_controller_path'] : null; 110 !is_null(Trax::$current_controller_path) 111 ? Trax::$current_controller_path : null; 114 112 $this->controller_object = 115 ( array_key_exists('current_controller_object', $GLOBALS)116 && $GLOBALS['current_controller_object'])117 ? $GLOBALS['current_controller_object']: null;113 (!is_null(Trax::$current_controller_object) 114 && is_object(Trax::$current_controller_object)) 115 ? Trax::$current_controller_object : null; 118 116 if($auto_index) { 119 117 $object = $this->object(); -
trunk/trax/vendor/trax/action_view/helpers/asset_tag_helper.php
r199 r201 82 82 83 83 // If TRAX_URL_PREFIX non-null, prefix it to path 84 if(!is_null(T RAX_URL_PREFIX)) {85 $prefix = T RAX_URL_PREFIX;84 if(!is_null(Trax::$url_prefix)) { 85 $prefix = Trax::$url_prefix; 86 86 if($prefix{0} != "/") { 87 87 $prefix = "/$prefix"; … … 150 150 $sources); 151 151 } 152 if(file_exists(T RAX_PUBLIC. "/javascripts/application.js")) {152 if(file_exists(Trax::$public_path. "/javascripts/application.js")) { 153 153 $sources[] = 'application'; 154 154 } … … 331 331 $asset_helper = new AssetTagHelper(); 332 332 $args = func_get_args(); 333 return call_user_func_array(array($asset_helper, 334 'auto_discovery_link_tag'), $args); 333 return call_user_func_array(array($asset_helper, 'auto_discovery_link_tag'), $args); 335 334 } 336 335 … … 352 351 $asset_helper = new AssetTagHelper(); 353 352 $args = func_get_args(); 354 return call_user_func_array(array($asset_helper, 355 'stylesheet_link_tag'), $args); 353 return call_user_func_array(array($asset_helper, 'stylesheet_link_tag'), $args); 356 354 } 357 355 … … 363 361 $asset_helper = new AssetTagHelper(); 364 362 $args = func_get_args(); 365 return call_user_func_array(array($asset_helper, 366 'javascript_include_tag'), $args); 363 return call_user_func_array(array($asset_helper, 'javascript_include_tag'), $args); 367 364 } 368 365
