Skip to content

Commit a03362d

Browse files
committed
Fix Install method
1 parent 73dd367 commit a03362d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

maintain.inc.php

100644100755
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function plugin_install()
3131
define('OSM_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)).'/');
3232

3333
// Remove unused files from previous version
34-
$toremove = array("admin.tpl", "admin.php", "admin_boot.php", \
35-
"leaflet/leaflet.ie.css", "leaflet/MarkerCluster.Default.ie.css", \
36-
"admin/admin_sync.php", "admin/admin_sync.tpl", "admin/admin_batchmanager.php", \
34+
$toremove = array("admin.tpl", "admin.php", "admin_boot.php",
35+
"leaflet/leaflet.ie.css", "leaflet/MarkerCluster.Default.ie.css",
36+
"admin/admin_sync.php", "admin/admin_sync.tpl", "admin/admin_batchmanager.php",
3737
"include/functions_metadata.php");
3838
foreach ($toremove as $file)
3939
{
@@ -110,7 +110,7 @@ function plugin_uninstall()
110110
pwg_query( $q );
111111

112112
/* Remove lat/lon col from previous PWG install */
113-
rvgm_drop_old_columns();
113+
//osm_drop_old_columns();
114114
}
115115

116116
function plugin_activate()
@@ -152,6 +152,7 @@ function osm_deltree($path)
152152
// Drop lat/lon col from previous PWG install
153153
function osm_drop_old_columns()
154154
{
155+
/* TODO: delete columns if they exist in case of restore config */
155156
$q = 'ALTER TABLE '.IMAGES_TABLE.' DROP COLUMN `lat`';
156157
pwg_query( $q );
157158

0 commit comments

Comments
 (0)