Ignore:
Timestamp:
07/02/08 17:27:46 (4 years ago)
Author:
hverton
Message:

bugfixes, added a missing download title field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/download_statistics/php-files/modules/download_statistics/module_installer.php

    r1499 r1506  
    1717$mod_title = "Download Statistics"; 
    1818$mod_description = "Gather and display download statistics from download mirror logs. includes a Google Map with downloaders per country"; 
    19 $mod_version = "1.0.8"; 
     19$mod_version = "1.1.1"; 
    2020$mod_developer = "WanWizard"; 
    2121$mod_email = "wanwizard@gmail.com"; 
     
    9494$localestrings['en']['dls511'] = "Google Maps API key:"; 
    9595$localestrings['en']['dls512'] = "Click <a href='http://code.google.com/apis/maps/signup.html' target='_blank'>here</a> to sign up for a key."; 
     96$localestrings['en']['dls513'] = "Download Statistics Panel Title"; 
     97$localestrings['en']['dls514'] = "Used as title of the statistics panel. You can use %s as a placeholder for the total download count"; 
    9698// Statistics counter panel 
    9799$localestrings['en']['dls600'] = "Download Statistics Panel"; 
     
    163165$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##configuration (cfg_name, cfg_value) VALUES ('dlstats_remote', '0')"); 
    164166$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##configuration (cfg_name, cfg_value) VALUES ('dlstats_google_api_key', '')"); 
     167$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##configuration (cfg_name, cfg_value) VALUES ('dlstats_title', '')"); 
    165168 
    166169// Geomap information table 
     
    229232$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'dlstats_remote'"); 
    230233$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'dlstats_google_api_key'"); 
     234$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'dlstats_title'"); 
    231235 
    232236// delete the tables 
     
    262266             
    263267        switch ($current_version) { 
    264             case "1.0.0":           // current release version 
     268            case "1.1.0": 
     269                $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('dlstats_title', '')"); 
     270 
     271            case "1.1.1":           // current release version 
     272 
    265273        } 
    266274    } 
Note: See TracChangeset for help on using the changeset viewer.