* fixed some typos

* changes account.management to use buttons defined in template
This commit is contained in:
slawkens1
2018-01-06 23:43:52 +01:00
parent dece42c155
commit 792770e5e2
8 changed files with 32 additions and 27 deletions

View File

@@ -27,12 +27,7 @@ if(isset($_GET['title'], $_GET['body'], $_GET['player_id'], $_GET['category'], $
'icon_id' => $cat['icon_id']
);
}
/*
$template_path = $_GET['template_path'];
$twig->addGlobal('template_path', $template_path);
if($twig_loader && file_exists(BASE . $template_path))
$twig_loader->prependPath(BASE . $template_path);
*/
$twig->addGlobal('config', $config);
$player = new OTS_Player();
@@ -45,7 +40,7 @@ if(isset($_GET['title'], $_GET['body'], $_GET['player_id'], $_GET['category'], $
if($_GET['type'] == 3) { // ARTICLE
if(!isset($_GET['article_text'], $_GET['article_image'])) {
error_('Error: please fill all inputs 2.');
error_('Error: please fill all inputs.');
}
$featured_article = '';
@@ -57,7 +52,7 @@ if(isset($_GET['title'], $_GET['body'], $_GET['player_id'], $_GET['category'], $
'text' => $_GET['article_text'],
'image' => $_GET['article_image'],
'hidden' => 0,
'read_more'=> getLink('news/archive/') . '0'
'read_more'=> '#'
),
'canEdit' => false
));