equal
deleted
inserted
replaced
2838 /** |
2838 /** |
2839 * Assigns an array of string values to the template. Strings can be accessed from the template by inserting {KEY_NAME} in the template file. |
2839 * Assigns an array of string values to the template. Strings can be accessed from the template by inserting {KEY_NAME} in the template file. |
2840 * @param $vars array |
2840 * @param $vars array |
2841 */ |
2841 */ |
2842 |
2842 |
2843 function assign_vars($vars) |
2843 // We add the unused variable $from_internal here to silence "declaration should be compatible" errors |
|
2844 function assign_vars($vars, $from_internal = false) |
2844 { |
2845 { |
2845 $this->tpl_strings = array_merge($this->tpl_strings, $vars); |
2846 $this->tpl_strings = array_merge($this->tpl_strings, $vars); |
2846 } |
2847 } |
2847 |
2848 |
2848 /** |
2849 /** |
2849 * Assigns an array of boolean values to the template. These can be used for <!-- IF ... --> statements. |
2850 * Assigns an array of boolean values to the template. These can be used for <!-- IF ... --> statements. |
2850 * @param $vars array |
2851 * @param $vars array |
2851 */ |
2852 */ |
2852 |
2853 |
2853 function assign_bool($vars) |
2854 // We add the unused variable $from_internal here to silence "declaration should be compatible" errors |
|
2855 function assign_bool($vars, $from_internal = false) |
2854 { |
2856 { |
2855 $this->tpl_bool = array_merge($this->tpl_bool, $vars); |
2857 $this->tpl_bool = array_merge($this->tpl_bool, $vars); |
2856 } |
2858 } |
2857 |
2859 |
2858 /** |
2860 /** |