Commit 34347387 authored by walkah's avatar walkah

#35126 - incorrect admin login user

#35148 - menu fix
thanks kiz_0987
parent ab55e50a
......@@ -19,9 +19,10 @@ function gallery_menu($may_cache) {
if ($may_cache) {
$items[] = array('path' => 'gallery',
'title' => t('gallery'),
'callback' => 'gallery_page',
'access' => user_access('access content'),
'type' => MENU_SUGGESTED_ITEM);
'type' => MENU_NORMAL_ITEM);
}
return $items;
......@@ -341,7 +342,7 @@ function _gallery_init($full = false) {
}
$keys = array_keys($g2_users);
$g2_user_name = $users[$keys[0]];
$g2_user_name = $g2_users[$keys[0]];
list ($ret, $g2_user) = GalleryCoreApi::fetchUserByUsername($g2_user_name);
if ($ret->isError()) {
return array(false, $ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment