Dodanie obsługi tokenów przesyłania i kluczy API w edytorach artykułów, banerów i produktów; aktualizacja adresu URL do changeloga
This commit is contained in:
@@ -39,19 +39,24 @@ class Articles
|
||||
exit;
|
||||
}
|
||||
|
||||
public static function article_edit()
|
||||
{
|
||||
public static function article_edit() {
|
||||
global $user;
|
||||
|
||||
if ( !$user ) {
|
||||
header( 'Location: /admin/' );
|
||||
exit;
|
||||
}
|
||||
|
||||
\admin\factory\Articles::delete_nonassigned_images();
|
||||
\admin\factory\Articles::delete_nonassigned_files();
|
||||
|
||||
return \admin\view\Articles::article_edit(
|
||||
\admin\factory\Articles::article_details(
|
||||
\S::get( 'id' )
|
||||
),
|
||||
\admin\factory\Pages::menus_list(),
|
||||
\admin\factory\Languages::languages_list(),
|
||||
\admin\factory\Layouts::layouts_list()
|
||||
);
|
||||
return \Tpl::view( 'articles/article-edit', [
|
||||
'article' => \admin\factory\Articles::article_details( (int)\S::get( 'id' ) ),
|
||||
'menus' => \admin\factory\Pages::menus_list(),
|
||||
'languages' => \admin\factory\Languages::languages_list(),
|
||||
'layouts' => \admin\factory\Layouts::layouts_list(),
|
||||
'user' => $user
|
||||
] );
|
||||
}
|
||||
|
||||
public static function view_list()
|
||||
|
||||
Reference in New Issue
Block a user