1
0

Merge commit 'gallery3-contrib/master'

This commit is contained in:
rWatcher 2009-07-08 15:57:01 -04:00
commit 0b0223090d
9 changed files with 20 additions and 42 deletions

View File

@ -19,10 +19,13 @@
*/ */
class developer_installer { class developer_installer {
static function install() { static function install() {
$config = Kohana::config("developer.methods"); module::set_version("developer", 1);
$version = module::get_version("developer"); }
if ($version == 0) {
module::set_version("developer", 1); static function upgrade($version) {
} }
static function uninstall() {
module::delete("developer");
} }
} }

View File

@ -27,6 +27,9 @@ class <?= $module ?>_installer {
} }
} }
static function upgrade($version) {
}
static function uninstall() { static function uninstall() {
/* @todo Put database table drops here */ /* @todo Put database table drops here */
module::delete("<?= $module ?>"); module::delete("<?= $module ?>");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -18,13 +18,6 @@
*/ */
class downloadfullsize_installer { class downloadfullsize_installer {
static function install() { static function install() {
$version = module::get_version("downloadfullsize"); module::set_version("downloadfullsize", 1);
if ($version == 0) {
module::set_version("downloadfullsize", 1);
}
}
static function uninstall() {
module::delete("downloadfullsize");
} }
} }

View File

@ -19,9 +19,6 @@
*/ */
class embedlinks_installer { class embedlinks_installer {
static function install() { static function install() {
$version = module::get_version("embedlinks"); module::set_version("embedlinks", 1);
if ($version == 0) {
module::set_version("embedlinks", 1);
}
} }
} }

View File

@ -19,13 +19,6 @@
*/ */
class gmaps_installer { class gmaps_installer {
static function install() { static function install() {
$version = module::get_version("gmaps"); module::set_version("gmaps", 1);
if ($version == 0) {
module::set_version("gmaps", 1);
}
}
static function uninstall() {
module::delete("gmaps");
} }
} }

View File

@ -19,9 +19,6 @@
*/ */
class nobots_installer { class nobots_installer {
static function install() { static function install() {
$version = module::get_version("nobots"); module::set_version("nobots", 1);
if ($version == 0) {
module::set_version("nobots", 1);
}
} }
} }

View File

@ -19,14 +19,6 @@
*/ */
class polar_rose_installer { class polar_rose_installer {
static function install() { static function install() {
$db = Database::instance(); module::set_version("polar_rose", 1);
$version = module::get_version("polar_rose");
if ($version == 0) {
module::set_version("polar_rose", 1);
}
}
static function uninstall() {
module::delete("polar_rose");
} }
} }

View File

@ -20,10 +20,10 @@
class polar_rose_theme_Core { class polar_rose_theme_Core {
static function head($theme) { static function head($theme) {
if (module::is_installed("rss")) { if (module::is_installed("rss")) {
if ($theme->item()) { if ($item = $theme->item()) {
$url = rss::item_feed($theme->item()); $url = rss::feed_link("gallery/album/{$item->id}");
} else if ($theme->tag()) { } else if ($tag = $theme->tag()) {
$url = rss::tag_feed($theme->tag()); $url = rss::feed_link("tag/tag/{$tag->id}");
} }
// Polar Rose doesn't understand relative URLs. Hack around that until they fix it. // Polar Rose doesn't understand relative URLs. Hack around that until they fix it.