Serve genesis_url by es_id

pull/1/head
Victor Dubiniuk 11 years ago committed by Tobias Hintze
parent 2a7b9a6e1b
commit 76ed6452d9

@ -17,7 +17,8 @@ namespace OCA\Office;
// Check if we are a user
\OCP\User::checkLoggedIn();
$filename = "/welcome.odt";
$session = Session::getSession($_SERVER['QUERY_STRING']);
$filename = isset($session['genesis_url']) ? $session['genesis_url'] : '';
$download = new Download($filename);
$download->sendResponse();

@ -35,4 +35,9 @@ OCP\App::addNavigationEntry(array(
OC::$CLASSPATH['OCA\Office\Storage'] = 'office/lib/storage.php';
OC::$CLASSPATH['OCA\Office\Download\Simple'] = 'office/lib/download/simple.php';
OC::$CLASSPATH['OCA\Office\Download\Range'] = 'office/lib/download/range.php';
OC::$CLASSPATH['OCA\Office\Download\Range'] = 'office/lib/download/range.php';
// Testing
if (!\OCA\Office\Session::getSession('dev0')){
\OCA\Office\Session::setMockSession();
}
Loading…
Cancel
Save