summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/identity.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-29 11:18:35 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-29 11:18:35 -0700
commit749d17ac1688e558f091cd2f5c702a0635d377d1 (patch)
tree3e3ffaafb62b16c6bce9ac7133854369587efcce /modules/gallery/helpers/identity.php
parent0bb2b7659f8cb0c117d01958c7fec95a80e83a02 (diff)
Use the identity interface admin_user to retreive the admin user.
Diffstat (limited to 'modules/gallery/helpers/identity.php')
-rw-r--r--modules/gallery/helpers/identity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/identity.php b/modules/gallery/helpers/identity.php
index 3030bd3d..dd8c6c16 100644
--- a/modules/gallery/helpers/identity.php
+++ b/modules/gallery/helpers/identity.php
@@ -68,7 +68,7 @@ class identity_Core {
// upconvert into a user.
// @todo set the user name into the session instead of 2 and then use it to get the user object
if ($user === 2) {
- $user = IdentityProvider::instance()->lookup_user_by_name("admin");
+ $user = IdentityProvider::instance()->admin_user();
self::set_active_user($user);
$session->set("user", $user);
}