diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 04:45:35 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 04:45:35 +0000 |
| commit | fc7b78492bc671f6dd78e04f5d42de958cdfb1d7 (patch) | |
| tree | 9ee1738b0869cd183f688180eedc144bb4fa385a /core/helpers/access.php | |
| parent | f8a0c91ce689c5e0ae7bf05cc75b9982a3b26baf (diff) | |
Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
file_proxy. It also means we can stop munging file names in the var/resizes hierarchy.
In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
Diffstat (limited to 'core/helpers/access.php')
| -rw-r--r-- | core/helpers/access.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index b8aee683..05799bf5 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -467,7 +467,9 @@ class access_Core { * Create .htaccess files to prevent direct access to the given album and its hierarchy. */ private static function _create_htaccess_files($album) { - foreach (array($album->file_path(), dirname($album->resize_path())) as $dir) { + foreach (array($album->file_path(), + dirname($album->resize_path()), + dirname($album->thumb_path())) as $dir) { $base_url = url::site("file_proxy"); $fp = fopen("$dir/.htaccess", "w+"); fwrite($fp, "<IfModule mod_rewrite.c>\n"); |
