summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/tests/Comment_Helper_Test.php2
-rw-r--r--modules/gallery/helpers/identity.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/tests/Comment_Helper_Test.php b/modules/comment/tests/Comment_Helper_Test.php
index c635c3b7..9a8c83f1 100644
--- a/modules/comment/tests/Comment_Helper_Test.php
+++ b/modules/comment/tests/Comment_Helper_Test.php
@@ -77,7 +77,7 @@ class Comment_Helper_Test extends Unit_Test_Case {
public function create_comment_for_user_test() {
$rand = rand();
$root = ORM::factory("item", 1);
- $admin = identity::lookup_user(2);
+ $admin = identity::admin_user();
$comment = comment::create(
$root, $admin, "text_$rand", "name_$rand", "email_$rand", "url_$rand");
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);
}