From 90c14a26e3e75a84b8c1c24bd44ed385cc43d350 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Wed, 14 Dec 2016 02:09:01 +0100 Subject: [PATCH] set getExtraSymbol public for GpxPod public pages --- CHANGELOG.md | 2 -- controller/utilscontroller.php | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f0e938..4df01da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/controller/utilscontroller.php b/controller/utilscontroller.php index 29178b7..32f111d 100644 --- a/controller/utilscontroller.php +++ b/controller/utilscontroller.php @@ -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']);