summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-16 23:07:33 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-16 23:07:33 +0000
commit8c7d0a76e55acd6be2da05a7ab119b696e5f3a37 (patch)
treea10df1f75f41b247ef27a2560101398fd407367f /core/helpers
parent363548bfc451e22053b8546433a5fbe7a5b52f46 (diff)
Add file_proxy. This is controller gets triggered by .htaccess
protection on var/albums and var/resizes and only displays files to the user if they have "view" permission on the base ite.
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php
index f2949528..b8aee683 100644
--- a/core/helpers/access.php
+++ b/core/helpers/access.php
@@ -468,7 +468,7 @@ class access_Core {
*/
private static function _create_htaccess_files($album) {
foreach (array($album->file_path(), dirname($album->resize_path())) as $dir) {
- $base_url = url::site("file");
+ $base_url = url::site("file_proxy");
$fp = fopen("$dir/.htaccess", "w+");
fwrite($fp, "<IfModule mod_rewrite.c>\n");
fwrite($fp, " RewriteEngine On\n");