Changeset 1243

Show
Ignore:
Timestamp:
10/12/10 19:55:51 (3 years ago)
Author:
d0nut
Message:

release g-map 2.0.1, with de-informal and use of wcf_n constant

Location:
g-map
Files:
2 modified
1 copied

Legend:

Unmodified
Added
Removed
  • g-map/optionals/de.gmap.wbb/files/lib/acp/action/UpdateMapAction.class.php

    r1239 r1243  
    55/** 
    66 * Updates the map locations 
    7  *  
     7 * 
    88 * @package     de.gmap.wbb 
    99 * @author      Torben Brodt 
     
    1212class UpdateMapAction extends UpdateCounterAction { 
    1313        public $action = 'UpdateMap'; 
    14          
     14 
    1515        /** 
    1616         * @see Action::execute() 
     
    1818        public function execute() { 
    1919                parent::execute(); 
    20                  
     20 
    2121                $col = User::getUserOptionID('location'); 
    2222                $api = new GmapApi(); 
    23                  
     23 
    2424                if(empty($col) || !$api->isActive()) { 
    2525                        $this->calcProgress(); 
    2626                        $this->finish(); 
    2727                } 
    28                  
     28 
    2929                $col = "userOption".$col; 
    30                  
     30 
    3131                // count board 
    3232                $sql = "SELECT          COUNT(*) AS count 
     
    3535                $row = WCF::getDB()->getFirstRow($sql); 
    3636                $count = $row['count']; 
    37                  
     37 
    3838                $i = 0; 
    39                  
     39 
    4040                // cleanup disabled users 
    41                 $sql = 'DELETE FROM     wcf1_gmap_user 
    42                         USING           wcf1_gmap_user 
    43                         LEFT JOIN       wcf1_user ON wcf1_gmap_user.userID = wcf1_user.userID 
    44                         WHERE           ISNULL(wcf1_user.userID)'; 
     41                $sql = 'DELETE FROM     wcf'.WCF_N.'_gmap_user 
     42                        USING           wcf'.WCF_N.'_gmap_user 
     43                        LEFT JOIN       wcf'.WCF_N.'_user ON wcf'.WCF_N.'_gmap_user.userID = wcf'.WCF_N.'_user.userID 
     44                        WHERE           ISNULL(wcf'.WCF_N.'_user.userID)'; 
    4545                WCF::getDB()->sendQuery($sql); 
    46                  
     46 
    4747                // update 
    4848                $sql = "SELECT          userID, 
     
    5454                while ($row = WCF::getDB()->fetchArray($result)) { 
    5555                        $point = $api->search($row['loc']); 
    56                          
     56 
    5757                        if($point) { 
    5858                                $sql = "REPLACE INTO    wcf".WCF_N."_gmap_user 
     
    6161                                WCF::getDB()->sendQuery($sql); 
    6262                        } 
    63                          
     63 
    6464                        $i++; 
    6565                } 
    66                  
     66 
    6767                if ($i == 0) { 
    6868                        $this->calcProgress(); 
    6969                        $this->finish(); 
    7070                } 
    71                  
     71 
    7272                $this->calcProgress(($this->limit * $this->loop), $count); 
    7373                $this->nextLoop(); 
  • g-map/package.xml

    r1239 r1243  
    1010                <packagedescription language="it"><![CDATA[Questo pacchetto aggiunge una mappa di Google sul tuo forum.]]></packagedescription> 
    1111                <isunique>1</isunique> 
    12                 <version>2.0.0</version> 
     12                <version>2.0.1</version> 
    1313                <date>DATE</date> 
    1414                <plugin>com.woltlab.wcf</plugin> 
     
    3737                <pagelocation>pagelocation.xml</pagelocation> 
    3838                <languages languagecode="de">de.xml</languages> 
     39                <languages languagecode="de-informal">de-informal.xml</languages> 
    3940                <languages languagecode="en">en.xml</languages> 
    4041                <languages languagecode="it">it.xml</languages> 
     
    4546        </instructions> 
    4647         
     48        <instructions type="update" fromversion="2.0.0"> 
     49                <files>files.tar</files> 
     50                <languages languagecode="de-informal">de-informal.xml</languages> 
     51        </instructions> 
     52         
    4753        <instructions type="update" fromversion="2.0.0 RC 3"> 
    4854                <files>files.tar</files> 
     55                <languages languagecode="de-informal">de-informal.xml</languages> 
    4956                <pagemenu>pagemenu.xml</pagemenu> 
    5057                <languages languagecode="it">it.xml</languages> 
     
    5461        <instructions type="update" fromversion="2.0.0 RC 2"> 
    5562                <files>files.tar</files> 
     63                <languages languagecode="de-informal">de-informal.xml</languages> 
    5664                <pagemenu>pagemenu.xml</pagemenu> 
    5765                <languages languagecode="it">it.xml</languages>