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 {
static function install() {
$config = Kohana::config("developer.methods");
$version = module::get_version("developer");
if ($version == 0) {
module::set_version("developer", 1);
}
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() {
/* @todo Put database table drops here */
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 {
static function install() {
$version = module::get_version("downloadfullsize");
if ($version == 0) {
module::set_version("downloadfullsize", 1);
}
}
static function uninstall() {
module::delete("downloadfullsize");
module::set_version("downloadfullsize", 1);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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