diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-18 10:06:29 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-18 10:08:38 -0800 |
commit | f657a05d7ed21423afb925755bacbb07a1384044 (patch) | |
tree | d1345c4dbc9a676c034a96d2f0ec4fca1c990a75 | |
parent | 412f8f73e33d2f8b02eeedc69bc8a486b2d8e2e8 (diff) |
Get rid of the "organize needs rest" message when upgrading to the
new organize; it may be hanging around from a prior version. Reinstate
the installer for this. Bump organize module to v4. Follow-on for #1584.
-rw-r--r-- | installer/install.sql | 2 | ||||
-rw-r--r-- | modules/organize/helpers/organize_installer.php | 28 | ||||
-rw-r--r-- | modules/organize/module.info | 2 |
3 files changed, 30 insertions, 2 deletions
diff --git a/installer/install.sql b/installer/install.sql index 1d2e6720..865cb2a4 100644 --- a/installer/install.sql +++ b/installer/install.sql @@ -247,7 +247,7 @@ CREATE TABLE {modules} ( INSERT INTO {modules} VALUES (1,1,'gallery',46,1); INSERT INTO {modules} VALUES (2,1,'user',3,2); INSERT INTO {modules} VALUES (3,1,'comment',3,3); -INSERT INTO {modules} VALUES (4,1,'organize',3,4); +INSERT INTO {modules} VALUES (4,1,'organize',4,4); INSERT INTO {modules} VALUES (5,1,'info',2,5); INSERT INTO {modules} VALUES (6,1,'rss',1,6); INSERT INTO {modules} VALUES (7,1,'search',1,7); diff --git a/modules/organize/helpers/organize_installer.php b/modules/organize/helpers/organize_installer.php new file mode 100644 index 00000000..d68bc3b6 --- /dev/null +++ b/modules/organize/helpers/organize_installer.php @@ -0,0 +1,28 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2010 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class organize_installer { + static function upgrade($version) { + if ($version < 4) { + // No longer necessary, make sure that it's cleared. + site_status::clear("organize_needs_rest"); + module::set_version("organize", $version = 4); + } + } +} diff --git a/modules/organize/module.info b/modules/organize/module.info index be0bc86d..0d16144d 100644 --- a/modules/organize/module.info +++ b/modules/organize/module.info @@ -1,3 +1,3 @@ name = "Organize" description = "Visually rearrange and move photos in your gallery" -version = 3 +version = 4 |