*/ /** * This controller handles changing the language in the current session * * @package GalleryCore * @subpackage UserInterface */ class ChangeLanguageController extends GalleryController { /** * @see GalleryController::handleRequest() */ function handleRequest($form) { global $gallery; $language = GalleryUtilities::getRequestVariables('language'); $ret = $gallery->setActiveLanguageCode($language); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } $results['return'] = 1; $results['status'] = array(); $results['error'] = array(); return array(null, $results); } } ?>