canEdit()) { // throw warning and forward to previous page forward($_SERVER['HTTP_REFERER']); } // set page owner based on container (user or group) $container = $album->container_guid; set_page_owner($container); $page_owner = page_owner_entity(); set_context('photos'); $title = elgg_echo('album:addpix') . ': ' . $album->title; $area2 .= elgg_view_title($title); $area2 .= elgg_view("tidypics/forms/upload", array('album' => $album_guid ) ); $body = elgg_view_layout('two_column_left_sidebar', '', $area2); page_draw($title, $body); ?>