I searched the templates for any usage of the "all_recipes" or the
"current_node" variable and did find nothing. Deleting them has no
noticeable effect.
This commit is contained in:
Daniel Röhrig 2019-10-23 21:32:03 +02:00
Родитель 3774705b05
Коммит eff33d3a1a
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -37,12 +37,10 @@ class PageController extends Controller
public function index()
{
$view_data = [
'all_recipes' => $this->service->getAllRecipesInSearchIndex(),
'all_keywords' => $this->service->getAllKeywordsInSearchIndex(),
'folder' => $this->service->getUserFolderPath(),
'update_interval' => $this->service->getSearchIndexUpdateInterval(),
'last_update' => $this->service->getSearchIndexLastUpdateTime(),
'current_node' => isset($_GET['recipe']) ? $this->service->getRecipeFileByFolderId($_GET['recipe']) : null
];
return new TemplateResponse('cookbook', 'index', $view_data); // templates/index.php