mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
First step towards fixing ticket #1038: Allowing for custom page <title> in admin pages, just like in non-admin pages.
TODO: Set $view->page_title in the many admin controllers we have. I just set it for admin_maintenance.php to show how it's intended to be used. I copied the title from views/admin_maintenance.html.php to the controller.
This commit is contained in:
@@ -40,6 +40,7 @@ class Admin_Maintenance_Controller extends Admin_Controller {
|
||||
}
|
||||
|
||||
$view = new Admin_View("admin.html");
|
||||
$view->page_title = t("Maintenance tasks");
|
||||
$view->content = new View("admin_maintenance.html");
|
||||
$view->content->task_definitions = task::get_definitions();
|
||||
$view->content->running_tasks = ORM::factory("task")
|
||||
|
||||
Reference in New Issue
Block a user