summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-13 19:56:02 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-13 19:56:02 -0700
commit1c1b726d077dc4db27b8af526384e74b9ae50e4f (patch)
tree090086791f048ae616a02674886f9f7c7145c229 /modules
parent468b715a4dba01a93dbff637f6500d7d31638e64 (diff)
Change the user config setting "allow_updates" to true in the identity config file and correct a missing variable in the view.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/config/identity.php2
-rw-r--r--modules/gallery/helpers/gallery_theme.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/config/identity.php b/modules/gallery/config/identity.php
index 72d1b589..0479d08b 100644
--- a/modules/gallery/config/identity.php
+++ b/modules/gallery/config/identity.php
@@ -32,6 +32,6 @@
*/
$config["default"] = array (
"driver" => "gallery",
- "allow_updates" => false,
+ "allow_updates" => true,
"params" => array(),
);
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index a342b4bd..54b35fb7 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -55,6 +55,7 @@ class gallery_theme_Core {
if ($theme->page_type != "login") {
$view = new View("login.html");
$view->user = user::active();
+ $view->writable = user::is_writable();
return $view->render();
}
}