mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Small optimizations in code, use compact where applicable
This commit is contained in:
@@ -95,13 +95,7 @@ class QueueController extends BasePageController
|
||||
$meta_keywords = 'view,'.strtolower($queueType).',queue';
|
||||
$meta_description = 'View'.$queueType.' Queue';
|
||||
$content = $this->smarty->fetch('viewqueue.tpl');
|
||||
$this->smarty->assign([
|
||||
'title' => $title,
|
||||
'content' => $content,
|
||||
'meta_title' => $meta_title,
|
||||
'meta_keywords' => $meta_keywords,
|
||||
'meta_description' => $meta_description,
|
||||
]);
|
||||
$this->smarty->assign(compact('title', 'content', 'meta_title', 'meta_keywords', 'meta_description'));
|
||||
$this->pagerender();
|
||||
}
|
||||
|
||||
@@ -329,12 +323,7 @@ class QueueController extends BasePageController
|
||||
|
||||
$content = $this->smarty->fetch('nzbvortex.tpl');
|
||||
|
||||
$this->smarty->assign(
|
||||
[
|
||||
'title' => $title,
|
||||
'content' => $content,
|
||||
]
|
||||
);
|
||||
$this->smarty->assign(compact('title', 'content'));
|
||||
|
||||
$this->pagerender();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user