@ -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';
// Testing
if (!\OCA\Office\Session::getSession('dev0')){
\OCA\Office\Session::setMockSession();
}