diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 22:57:38 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 22:57:38 -0700 |
| commit | 38708920181f3bb7787ccd11128e5f6f0b74cbf7 (patch) | |
| tree | 2b509460486741547cab2541ca372dbb4b43c02b /modules/g2_import/helpers/g2_import_installer.php | |
| parent | 24dce5a85d97856508951123aed09feb206beb82 (diff) | |
Commit an egregious hack to work around the fact that both Gallery 2
and Gallery 3 have a class named Gallery. Clone a subset of the
Gallery 2 files and munge them so that we can rename the Galery 2
version to G2_Gallery.
Also, update the disclaimer in Admin > Settings > Gallery 2 Import.
Diffstat (limited to 'modules/g2_import/helpers/g2_import_installer.php')
| -rw-r--r-- | modules/g2_import/helpers/g2_import_installer.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import_installer.php b/modules/g2_import/helpers/g2_import_installer.php index 2bfb7f8c..5f414d42 100644 --- a/modules/g2_import/helpers/g2_import_installer.php +++ b/modules/g2_import/helpers/g2_import_installer.php @@ -31,6 +31,11 @@ class g2_import_installer { ENGINE=InnoDB DEFAULT CHARSET=utf8;"); module::set_version("g2_import", 1); + mkdir(VARPATH . "modules/g2_import"); } } + + static function uninstall() { + @dir::unlink(VARPATH . "modules/g2_import"); + } } |
