set getExtraSymbol public for GpxPod public pages

merge-requests/1/head
Julien Veyssier 2016-12-14 02:09:01 +01:00
parent fcc396f58c
commit 90c14a26e3
2 changed files with 3 additions and 4 deletions

View File

@ -5,8 +5,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### TODO
- compat jpg
### Added
- file description field
- 'destination' readonly field indicating full save path

View File

@ -90,6 +90,8 @@ class UtilsController extends Controller {
$this->appPath = \OC_App::getAppPath('gpxedit');
$this->userId = $UserId;
$this->dbtype = $config->getSystemValue('dbtype');
// IConfig object
$this->config = $config;
if ($this->dbtype === 'pgsql'){
$this->dbdblquotes = '"';
}
@ -99,8 +101,6 @@ class UtilsController extends Controller {
if ($UserId !== '' and $userfolder !== null){
// path of user files folder relative to DATA folder
$this->userfolder = $userfolder;
// IConfig object
$this->config = $config;
// absolute path to user files folder
$this->userAbsoluteDataPath =
$this->config->getSystemValue('datadirectory').
@ -185,6 +185,7 @@ class UtilsController extends Controller {
/**
* @NoAdminRequired
* @NoCSRFRequired
* @PublicPage
*/
public function getExtraSymbol() {
$filename = str_replace(array('../', '..\\'), '', $_GET['name']);