Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-06-29 01:41:17 +0300
committerOlivier Paroz <github@oparoz.com>2015-06-29 01:41:17 +0300
commit01d2f29a4c13b516abb8450d85392c96e34196dd (patch)
tree332b2a651f752320bc56dfb0aa07ec94d0fa4016 /controller
parent7e083e39d094d9587640b8ae134167348540d138 (diff)
Fix JS config parser
Diffstat (limited to 'controller')
-rw-r--r--controller/configcontroller.php3
-rw-r--r--controller/publicconfigcontroller.php2
-rw-r--r--controller/publicfilescontroller.php4
3 files changed, 9 insertions, 0 deletions
diff --git a/controller/configcontroller.php b/controller/configcontroller.php
index 689fa2e0..be448e0d 100644
--- a/controller/configcontroller.php
+++ b/controller/configcontroller.php
@@ -77,6 +77,9 @@ class ConfigController extends Controller {
*/
public function getConfig($slideshow = false) {
$features = $this->configService->getFeaturesList();
+
+ //$this->logger->debug("Features: {features}", ['features' => $features]);
+
$nativeSvgSupport = $this->isNativeSvgActivated($features);
$mediaTypes = $this->previewService->getSupportedMediaTypes($slideshow, $nativeSvgSupport);
diff --git a/controller/publicconfigcontroller.php b/controller/publicconfigcontroller.php
index fa1506d6..dff098f9 100644
--- a/controller/publicconfigcontroller.php
+++ b/controller/publicconfigcontroller.php
@@ -28,6 +28,8 @@ class PublicConfigController extends ConfigController {
* Returns a list of supported features
*
* @inheritDoc
+ *
+ * @param bool $slideshow
*/
public function getConfig($slideshow = false) {
return parent::getConfig($slideshow);
diff --git a/controller/publicfilescontroller.php b/controller/publicfilescontroller.php
index 9b1db24a..861a8a95 100644
--- a/controller/publicfilescontroller.php
+++ b/controller/publicfilescontroller.php
@@ -28,6 +28,10 @@ class PublicFilesController extends FilesController {
* Returns a list of all images from the folder the link gives access to
*
* @inheritDoc
+ *
+ * @param string $location a path representing the current album in the app
+ * @param string $features the list of supported features
+ * @param string $etag the last known etag in the client
*/
public function getFiles($location, $features, $etag) {
return parent::getFiles($location, $features, $etag);