mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 07:17:16 +02:00
removed a couple of todo messages
This commit is contained in:
@@ -489,7 +489,6 @@ class Admin
|
||||
});
|
||||
|
||||
// build new array with just pages in it
|
||||
// TODO: Optimized this
|
||||
$list = array();
|
||||
foreach ($latest as $item) {
|
||||
$list[] = $item['page'];
|
||||
|
||||
@@ -746,7 +746,6 @@ class AdminController
|
||||
$config = $this->grav['config'];
|
||||
$config->reload()->save();
|
||||
|
||||
// TODO: find out why reload and save doesn't always update the object itself (and remove this workaround).
|
||||
$config->set('system.pages.theme', $name);
|
||||
|
||||
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.SUCCESSFULLY_CHANGED_THEME'), 'info');
|
||||
|
||||
Reference in New Issue
Block a user