mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-08 12:39:17 -04:00
Implement a Maintenance mode as per ticket: #15
This commit is contained in:
@@ -39,6 +39,14 @@ class Theme_View_Core extends View {
|
||||
$this->set_global('theme', $this);
|
||||
$this->set_global('user', user::active());
|
||||
$this->set_global("page_type", $page_type);
|
||||
|
||||
$maintenance_mode = Kohana::config("core.maintenance_mode", false, false);
|
||||
if (!empty($maintenance_mode)) {
|
||||
$album = ORM::factory("item", 1);
|
||||
message::warning(t("%title is currently unavailable as it is undergoing maintenance",
|
||||
array("title" => $album->title)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function url($path, $absolute_url=false) {
|
||||
|
||||
Reference in New Issue
Block a user