diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-05-20 06:10:14 +0000 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-20 06:10:14 +0000 | 
| commit | 774e0b3737d51b70bb141f4e13c6c111208847c0 (patch) | |
| tree | 8f367c99a16c1d4d3419838aec420a29a320bc3b /modules/exif/helpers/exif_installer.php | |
| parent | 54fe2c600e6930c2885f3f6048221710637a142f (diff) | |
Avoid complex inserts in available_tasks() to make admin/maintenance
run faster.  This fixes ticket #235.
Incidentally, refactor exif and search to use the same patterns
overall so that if you understand one, you understand the other and
they generally use the same strings for localization.
Diffstat (limited to 'modules/exif/helpers/exif_installer.php')
| -rw-r--r-- | modules/exif/helpers/exif_installer.php | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/modules/exif/helpers/exif_installer.php b/modules/exif/helpers/exif_installer.php index 3088cdbb..5f37996a 100644 --- a/modules/exif/helpers/exif_installer.php +++ b/modules/exif/helpers/exif_installer.php @@ -33,12 +33,14 @@ class exif_installer {                     KEY(`item_id`))                   ENGINE=InnoDB DEFAULT CHARSET=utf8;");        module::set_version("exif", 1); +      exif::check_index();      }    }    static function uninstall() {      $db = Database::instance();      $db->query("DROP TABLE IF EXISTS {exif_records};"); +    site_status::clear("exif_index_out_of_date");      module::delete("exif");    }  } | 
