Changeset 17021
- Timestamp:
- Jul 25, 2012, 7:24:54 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r16278 r17021 530 530 * html elements must appear in the <head> element 531 531 */ 532 function block_html_head($params, $content , &$smarty, &$repeat)532 function block_html_head($params, $content) 533 533 { 534 534 $content = trim($content); … … 539 539 } 540 540 541 function block_html_style($params, $content , &$smarty, &$repeat)541 function block_html_style($params, $content) 542 542 { 543 543 $content = trim($content); … … 548 548 } 549 549 550 function func_define_derivative($params , &$smarty)550 function func_define_derivative($params) 551 551 { 552 552 !empty($params['name']) or fatal_error('define_derivative missing name'); … … 554 554 { 555 555 $derivative = ImageStdParams::get_by_type($params['type']); 556 $ smarty->assign( $params['name'], $derivative);556 $this->smarty->assign( $params['name'], $derivative); 557 557 return; 558 558 } … … 586 586 } 587 587 588 $ smarty->assign( $params['name'], ImageStdParams::get_custom($w, $h, $crop, $minw, $minh) );588 $this->smarty->assign( $params['name'], ImageStdParams::get_custom($w, $h, $crop, $minw, $minh) ); 589 589 } 590 590 … … 601 601 browser refresh 602 602 */ 603 function func_combine_script($params , &$smarty)603 function func_combine_script($params) 604 604 { 605 605 if (!isset($params['id'])) 606 606 { 607 $ smarty->trigger_error("combine_script: missing 'id' parameter", E_USER_ERROR);607 $this->smarty->trigger_error("combine_script: missing 'id' parameter", E_USER_ERROR); 608 608 } 609 609 $load = 0; … … 615 615 case 'footer': $load=1; break; 616 616 case 'async': $load=2; break; 617 default: $ smarty->trigger_error("combine_script: invalid 'load' parameter", E_USER_ERROR);617 default: $this->smarty->trigger_error("combine_script: invalid 'load' parameter", E_USER_ERROR); 618 618 } 619 619 } … … 625 625 626 626 627 function func_get_combined_scripts($params , &$smarty)627 function func_get_combined_scripts($params) 628 628 { 629 629 if (!isset($params['load'])) 630 630 { 631 $ smarty->trigger_error("get_combined_scripts: missing 'load' parameter", E_USER_ERROR);631 $this->smarty->trigger_error("get_combined_scripts: missing 'load' parameter", E_USER_ERROR); 632 632 } 633 633 $load = $params['load']=='header' ? 0 : 1; … … 695 695 } 696 696 697 function block_footer_script($params, $content , &$smarty, &$repeat)697 function block_footer_script($params, $content) 698 698 { 699 699 $content = trim($content); … … 715 715 browser refresh 716 716 */ 717 function func_combine_css($params , &$smarty)717 function func_combine_css($params) 718 718 { 719 719 !empty($params['path']) || fatal_error('combine_css missing path'); … … 723 723 } 724 724 725 function func_get_combined_css($params , &$smarty)725 function func_get_combined_css($params) 726 726 { 727 727 return 'echo '.var_export(self::COMBINED_CSS_TAG,true); -
trunk/themes/smartpocket/themeconf.inc.php
r13545 r17021 14 14 15 15 // Redirect if page is not compatible with mobile theme 16 if (!in_array(script_basename(), array('index', 'register', 'profile', 'identification' )))16 if (!in_array(script_basename(), array('index', 'register', 'profile', 'identification', 'ws'))) 17 17 redirect(duplicate_index_url()); 18 18
Note: See TracChangeset
for help on using the changeset viewer.