Changeset 13871 for trunk/include
- Timestamp:
- Apr 3, 2012, 8:15:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r13240 r13871 550 550 function func_define_derivative($params, &$smarty) 551 551 { 552 !empty($params['name']) or fatal_error('define_der viative missing name');552 !empty($params['name']) or fatal_error('define_derivative missing name'); 553 553 if (isset($params['type'])) 554 554 { … … 557 557 return; 558 558 } 559 !empty($params['width']) or fatal_error('define_der viative missing width');560 !empty($params['height']) or fatal_error('define_der viative missing height');559 !empty($params['width']) or fatal_error('define_derivative missing width'); 560 !empty($params['height']) or fatal_error('define_derivative missing height'); 561 561 562 562 $w = intval($params['width']); … … 580 580 { 581 581 $minw = empty($params['min_width']) ? $w : intval($params['min_width']); 582 $minw <= $w or fatal_error('define_der viative invalid min_width');582 $minw <= $w or fatal_error('define_derivative invalid min_width'); 583 583 $minh = empty($params['min_height']) ? $h : intval($params['min_height']); 584 $minh <= $h or fatal_error('define_der viative invalid min_height');584 $minh <= $h or fatal_error('define_derivative invalid min_height'); 585 585 } 586 586 }
Note: See TracChangeset
for help on using the changeset viewer.