Changeset 9446


Ignore:
Timestamp:
Mar 1, 2011, 12:01:11 PM (14 years ago)
Author:
cljosse
Message:

[edit_gmaps] bug on install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/edit_gmaps.inc.php

    r9445 r9446  
    143143} // class   
    144144 
    145 global $conf ;
    146   $colonnes = cl_edit_functions::Get_columns_of(IMAGES_TABLE); 
    147 $key = array_search('lon', $colonnes[IMAGES_TABLE]);
    148 if (!$key){
    149     $q = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN `lon` DOUBLE(8,6)';
    150     pwg_query($q);     
    151 }       
    152 $key = array_search('lat', $colonnes[IMAGES_TABLE]);
    153 if (!$key){
    154     $q = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN `lat` DOUBLE(9,6)';
    155     pwg_query($q);     
    156 }       
    157  
    158 $key = array_search('alt', $colonnes[IMAGES_TABLE]);
    159 if (!$key){
    160     $q = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN `alt` DOUBLE(9,6)';
    161     pwg_query($q);     
    162 }       
    163 
    164        
    165 
    166145
    167146?>
Note: See TracChangeset for help on using the changeset viewer.