]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added filesApp flag as input field for files app detection
authorVincent Petry <pvince81@owncloud.com>
Tue, 8 Oct 2013 15:19:58 +0000 (17:19 +0200)
committerVincent Petry <pvince81@owncloud.com>
Tue, 8 Oct 2013 15:19:58 +0000 (17:19 +0200)
Since the files app can be reached under multiple URLs, either root,
files.php or public.php, a flag has been added to the DOM to help apps
(like file viewers) to detect whether they are currently in the files
app.

apps/files/templates/index.php
apps/files_sharing/templates/public.php

index 5e7ad41b0f09ee231304b6d51ab01f611e6a126c..ebdca097e7426b20efdb9df54f88dac246a311e8 100644 (file)
 </div>
 
 <!-- config hints for javascript -->
+<input type="hidden" name="filesApp" id="filesApp" value="1" />
 <input type="hidden" name="ajaxLoad" id="ajaxLoad" value="<?php p($_['ajaxLoad']); ?>" />
 <input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php p($_['allowZipDownload']); ?>" />
 <input type="hidden" name="usedSpacePercent" id="usedSpacePercent" value="<?php p($_['usedSpacePercent']); ?>" />
index e53887c35902b4e3c7e996cebdc379070900e64c..5d935f645e692bf77b4bbce1c198ffa1e362a6ca 100644 (file)
@@ -2,6 +2,7 @@
        <div id="notification" style="display: none;"></div>
 </div>
 
+<input type="hidden" id="filesApp" name="filesApp" value="1">
 <input type="hidden" id="isPublic" name="isPublic" value="1">
 <input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
 <input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL">