Small optimizations in code, use compact where applicable

This commit is contained in:
DariusIII
2019-01-25 13:20:55 +01:00
parent 0e49c06f6a
commit 603655e974
58 changed files with 197 additions and 755 deletions
+2 -13
View File
@@ -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();
}