插件目录

变更集1515401


忽略:
时间戳:
2016年10月15日下午02:23:57(8年(之前)
作者:
AeonOfTime公司
消息:
  • 修复了更新已安装的数据库版本的问题
  • 将数据文件更新为最新版本
  • 修复了联机更新检查
  • 准备发布
位置:
eve-shipinfo/干线
文件夹:
5已编辑

图例:

未修改
补充
远离的
  • eve-shipinfo/trunk/classes/EVEShipInfo.php

    1512895元 1515401兰特  
    124124$数据=wp_remote_retrieve_response_message($result);
    125125}其他{
     126$infoRemote=EVEShipInfo::parseVersion(trim($result['body']));
     127$infoLocal=EVEShipInfo::parseVersion($this->getDataVersion());
     128$update=false;
     129if($infoRemote['date']>$infoLocal['date']){
     130$update=true;
     131                }
     132               
    126133$data=数组(
    127                     '在线'=>$result['正文'],
    128                     '已安装'=>$this->getDataVersion()
     134                    'remoteVersion“=>$infoRemote[”版本'],
     135                    'updateAvailable’=>$update,
    129136                );
    130137            }
     
    132139
    133140$response=数组(
     141“url”=>$url,
    134142“state”=>$state,
    135143“data”=>$data
     
    12051213*@return布尔值
    12061214    */
    1207 公共函数isDatabaseUpToDate()
    1208     {
    1209 if(isset($this->cachedDBUpToDate)) {
     1215公共函数isDatabaseUpToDate($force=错误)
     1216    {
     1217if(isset($this->cachedDBUpToDate) && !$) {
    12101218return$this->cachedDBUpToDate;返回$this->cachedDBUpToDate;
    12111219        }
     
    12621270$this->handle_unpackDataFiles();
    12631271       
    1264 如果($this->isDatabaseUpToDate()) {
     1272如果($this->isDatabaseUpToDate(真的)) {
    12651273回报;
    12661274        }
     
    12861294$this->handle_databasePopulate();
    12871295
    1288 $this->setOption('installed_db_version',$this->getDataVersion());
    12891296$this->cachedDBUpToDate=true;
    12901297    }
     
    14661473            }
    14671474        }
     1475       
     1476$version=$this->loadDataFile('db-version.txt');
     1477$this->setOption('installed_db_version',$version);
    14681478    }
    14691479   
     
    14821492返回null;
    14831493    }
     1494   
     1495公共静态函数parseVersion($version)
     1496    {
     1497$dateString=子项($version,strpos($versions,'-')+1);
     1498$year=子($dateString,0,4);
     1499$month=子项($dateString,4,2);
     1500$day=子项($dateString,6,2);
     1501       
     1502返回数组(
     1503“版本”=>$version,
     1504“年”=>$year,
     1505“月”=>$month,
     1506“天”=>$day,
     1507“date”=>新DateTime($year.'-'.$month.'-'.$day)
     1508        );
     1509    }
    14841510}
    14851511   
  • eve-shipinfo/trunk/classes/EVEShipInfo/Admin/Page/Main/Dashboard.php

    1512895元 1515401兰特  
    146146        }
    147147       
    148         $内容=file_get_contents($versionFile);
    149 if(空($内容)) {
     148        $版本=file_get_contents($versionFile);
     149if(空($版本)) {
    150150抛出新的EVEShipInfo_Exception(
    151151'没有可用的版本信息',
     
    154154            );
    155155        }
    156        
    157 if($content==$this->plugin->getDataVersion()){
     156
     157$infoNew=EVEShipInfo::parseVersion($version);
     158$infoOld=EVEShipInfo::parseVersion($this->plugin->getDataVersion());
     159       
     160if($infoNew['date']<=$infoOld['date']){
    158161return$this->ui->createStuffBox(__('更新数据库','eve-shipinfo'))
    159162->生成警告()
    160163->设置内容(
    161164“<p>”。
    162 冲刺(
    163 __(“数据库版本%1$s已安装。”,“eve-shipinfo”),
    164 “<代码>”$内容。'</代码>'
    165                     ).
     165__(“已安装较新或同等数据库。”,“eve-shipinfo”)。
    166166“</p>”。
    167167“<p>”。
    168 $this->ui->按钮(__('后退','eve-shipinfo'))
     168$this->ui->按钮(__('好 啊','eve-shipinfo'))
    169169->链接($this->getURL())。
    170170“</p>”
     
    255255“</p>”。
    256256'<p id=“updatecheck-available”style=“display:none”class=“text-warning”>'。
    257 __(“有更新可用。”,“eve-shipinfo”)。”。
     257冲刺(
     258__('可用更新:版本%1$s','eve-shipinfo'),
     259'<code id=“updatecheck-remoteversion”></code>'
     260                ).' '.
    258261冲刺(
    259262__('从%1$splugin项目页面%2$s获取','eve-shipinfo'),
  • eve-shipinfo/ttrunk/js/admin/Dashboard.js

    1417468兰特 1515401兰特  
    3131        }
    3232       
    33 if(data.data.online!=data.data.installed){
     33var结果=data.data;
     34       
     35if(result.updateAvailable==true){
     36jQuery('#updatecheckremoteversion').html(result.remoteversion);
    3437jQuery('#updatecheck-available').show();
    3538回报;
  • eve-shipinfo/trunk/readme.txt

    1417469兰特 1515401兰特  
    1616=功能=
    1717
    18 *便携式EVE Online提供所有4个数据库63船舶
    19 *   926张高质量定制发货屏幕截图(正面/侧面)
    20 *集成简单的浅色和深色布局的主题
     18*便携式EVE Online提供所有4个数据库74船舶
     19*   948张高质量定制发货屏幕截图(正面/侧面),单独下载
     20*集成浅色和深色布局的主题
    2121*将发货名称链接到博客中的信息弹出窗口或虚拟发货页面
    2222*极其可定制的发货清单短代码
注:请参阅Trac变更集获取有关使用变更集查看器的帮助。