canEdit()) forward('pg/photos/owned/'); //set group to "real" container $container = $album_entity->container_guid; set_page_owner($container); } else forward('pg/photos/owned/'); $page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($page_owner->getGUID()); } set_context('photos'); $title = elgg_echo('album:addpix'); $area2 .= elgg_view_title($title); $area2 .= '