summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-05 07:13:46 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-05 07:13:46 +0000
commit581e931c439a726fbd6a0b0068debd2cd76e349d (patch)
tree904e121e5ebe6c4b53587bdc91723747fe6e3561 /core/helpers/core_installer.php
parent00513a71d2091eba3110164e506c2231972a1584 (diff)
Change the default theme to actually render what's in the Gallery.
Currently only the album view works, albums have no thumbnails, and there's only 1 image in use. Improved Item_Model to have the following API methods file_path() -- returns the path to the source image or album dir thumbnail_path(), thumbnail_url() -- returns path/url to the thumbnail resize_path(), resize_url() -- returns path/url to the resize All tests updated.
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index 8511b840..7d83236a 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -54,7 +54,7 @@ class core_installer {
KEY `type` (`type`))
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
- foreach (array("albums", "thumbnails") as $dir) {
+ foreach (array("albums", "resizes") as $dir) {
@mkdir(VARPATH . $dir);
}
@@ -80,6 +80,6 @@ class core_installer {
$db->query("DROP TABLE IF EXISTS `items`;");
$db->query("DROP TABLE IF EXISTS `modules`;");
system("/bin/rm -rf " . VARPATH . "albums");
- system("/bin/rm -rf " . VARPATH . "thumbnails");
+ system("/bin/rm -rf " . VARPATH . "resizes");
}
}