remove more dashes in templates
This commit is contained in:
parent
d3d5557393
commit
b6981768ee
10 changed files with 29 additions and 8 deletions
|
@ -710,6 +710,16 @@ function admin_page_users(&$a){
|
|||
$users = array_map("_setup_users", $users);
|
||||
|
||||
|
||||
// Get rid of dashes in key names, Smarty3 can't handle them
|
||||
foreach($users as $key => $user) {
|
||||
$new_user = array();
|
||||
foreach($user as $k => $v) {
|
||||
$k = str_replace('-','_',$k);
|
||||
$new_user[$k] = $v;
|
||||
}
|
||||
$users[$key] = $new_user;
|
||||
}
|
||||
|
||||
$t = get_markup_template("admin_users.tpl");
|
||||
$o = replace_macros($t, array(
|
||||
// strings //
|
||||
|
|
|
@ -341,6 +341,17 @@ function events_content(&$a) {
|
|||
// $tpl = get_markup_template("events.tpl");
|
||||
// }
|
||||
}
|
||||
|
||||
// Get rid of dashes in key names, Smarty3 can't handle them
|
||||
foreach($events as $key => $event) {
|
||||
$event_item = array();
|
||||
foreach($event['item'] as $k => $v) {
|
||||
$k = str_replace('-','_',$k);
|
||||
$event_item[$k] = $v;
|
||||
}
|
||||
$events[$key]['item'] = $event_item;
|
||||
}
|
||||
|
||||
$o = replace_macros($tpl, array(
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
'$tabs' => $tabs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue