mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 20:13:27 +02:00
* replace "$twig->render()" with "$this->display"
This commit is contained in:
@@ -31,16 +31,16 @@ if(empty($errors)) {
|
||||
delete_guild($guild->getId());
|
||||
$saved = true;
|
||||
}
|
||||
|
||||
|
||||
if($saved) {
|
||||
echo $twig->render('success.html.twig', array(
|
||||
$twig->display('success.html.twig', array(
|
||||
'title' => 'Guild Deleted',
|
||||
'description' => 'Guild with name <b>' . $guild_name . '</b> has been deleted.',
|
||||
'custom_buttons' => $twig->render('guilds.back_button.html.twig')
|
||||
));
|
||||
}
|
||||
else {
|
||||
echo $twig->render('success.html.twig', array(
|
||||
$twig->display('success.html.twig', array(
|
||||
'title' => 'Delete Guild',
|
||||
'description' => 'Are you sure you want delete guild <b>' . $guild_name . '</b>?<br/>
|
||||
<form action="?subtopic=guilds&guild=' . $guild->getName() . '&action=delete_by_admin" METHOD="post"><input type="hidden" name="todo" value="save"><input type="submit" value="Yes, delete"></form>',
|
||||
@@ -57,9 +57,9 @@ if(empty($errors)) {
|
||||
}
|
||||
}
|
||||
if(!empty($errors)) {
|
||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||
|
||||
echo $twig->render('guilds.back_button.html.twig', array(
|
||||
$twig->display('error_box.html.twig', array('errors' => $errors));
|
||||
|
||||
$twig->display('guilds.back_button.html.twig', array(
|
||||
'new_line' => true,
|
||||
'action' => '?subtopic=guilds'
|
||||
));
|
||||
|
Reference in New Issue
Block a user