Permalink
Browse files

Deprecation warning removed.

  • Loading branch information...
1 parent 77ec5ee commit ca719cc5f2c028624e8d7918f1d408a880964d2a @bfontaine bfontaine committed Aug 31, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 helpers/tpl.php
View
9 helpers/tpl.php
@@ -135,9 +135,12 @@ function global_footer_links() {
# array, and return a new array.
function tpl_array() {
$arrays = func_get_args();
- array_unshift(&$arrays, global_menu_links());
- array_unshift(&$arrays, global_footer_links());
- array_unshift(&$arrays, Config::$default_tpl_values);
+ $before = array(
+ Config::$default_tpl_values,
+ global_footer_links(),
+ global_menu_links()
+ );
+ $arrays = array_merge($before, $arrays);
return call_user_func_array('array_merge_recursive_new', $arrays);
}

0 comments on commit ca719cc

Please sign in to comment.