mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
* replace "$twig->render()" with "$this->display"
This commit is contained in:
@@ -18,7 +18,7 @@ else {
|
||||
$locales[] = array('id' => $tmp_locale, 'name' => $locale['name']);
|
||||
}
|
||||
}
|
||||
echo $twig->render('install.welcome.html.twig', array(
|
||||
$twig->display('install.welcome.html.twig', array(
|
||||
'locales' => $locales,
|
||||
'locale' => $locale,
|
||||
'buttons' => next_buttons(false, true)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
echo $twig->render('install.license.html.twig', array(
|
||||
$twig->display('install.license.html.twig', array(
|
||||
'license' => file_get_contents(BASE . 'LICENSE'),
|
||||
'buttons' => next_buttons()
|
||||
));
|
||||
|
@@ -6,11 +6,11 @@ foreach($config['clients'] as $client) {
|
||||
$client_version = (string)($client / 100);
|
||||
if(strpos($client_version, '.') == false)
|
||||
$client_version .= '.0';
|
||||
|
||||
|
||||
$clients[$client] = $client_version;
|
||||
}
|
||||
|
||||
echo $twig->render('install.config.html.twig', array(
|
||||
$twig->display('install.config.html.twig', array(
|
||||
'clients' => $clients,
|
||||
'timezones' => DateTimeZone::listIdentifiers(),
|
||||
'locale' => $locale,
|
||||
|
@@ -51,7 +51,7 @@ if(!$error) {
|
||||
error($database_error);
|
||||
}
|
||||
else {
|
||||
echo $twig->render('install.installer.html.twig', array(
|
||||
$twig->display('install.installer.html.twig', array(
|
||||
'url' => 'tools/5-database.php',
|
||||
'message' => $locale['loading_spinner']
|
||||
));
|
||||
|
@@ -9,7 +9,7 @@ if(!$error) {
|
||||
error($database_error);
|
||||
}
|
||||
|
||||
echo $twig->render('install.admin.html.twig', array(
|
||||
$twig->display('install.admin.html.twig', array(
|
||||
'locale' => $locale,
|
||||
'session' => $_SESSION,
|
||||
'errors' => isset($errors) ? $errors : null,
|
||||
|
@@ -115,7 +115,7 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
echo $twig->render('install.installer.html.twig', array(
|
||||
$twig->display('install.installer.html.twig', array(
|
||||
'url' => 'tools/7-finish.php',
|
||||
'message' => $locale['importing_spinner']
|
||||
));
|
||||
|
Reference in New Issue
Block a user