diff --git a/ajax/genesis.php b/ajax/genesis.php index 0e15d1b3..67690bf8 100644 --- a/ajax/genesis.php +++ b/ajax/genesis.php @@ -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(); \ No newline at end of file diff --git a/appinfo/app.php b/appinfo/app.php index a08e43c3..cce7e0f0 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -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'; \ No newline at end of file +OC::$CLASSPATH['OCA\Office\Download\Range'] = 'office/lib/download/range.php'; + +// Testing +if (!\OCA\Office\Session::getSession('dev0')){ + \OCA\Office\Session::setMockSession(); +} \ No newline at end of file