changed syntax to work with PHP 5.3 #2027
This commit is contained in:
parent
b609aca456
commit
f3eebda4fa
3 changed files with 63 additions and 26 deletions
|
@ -113,10 +113,10 @@ function videos_post(&$a) {
|
|||
$a->page['content'] = replace_macros(get_markup_template('confirm.tpl'), array(
|
||||
'$method' => 'post',
|
||||
'$message' => t('Do you really want to delete this video?'),
|
||||
'$extra_inputs' => [
|
||||
['name'=>'id', 'value'=> $_POST['id']],
|
||||
['name'=>'delete', 'value'=>'x']
|
||||
],
|
||||
'$extra_inputs' => array(
|
||||
array('name'=>'id', 'value'=> $_POST['id']),
|
||||
array('name'=>'delete', 'value'=>'x')
|
||||
),
|
||||
'$confirm' => t('Delete Video'),
|
||||
'$confirm_url' => $drop_url,
|
||||
'$confirm_name' => 'confirm', // Needed so that confirmation will bring us back into this if statement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue