Serve genesis_url by es_id
This commit is contained in:
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…
x
Reference in New Issue
Block a user