@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | $zip = new ZipArchive; |
27 | 27 | if ($zip->open($archive) === true) { |
28 | - $zip->extractTo($destination . DS); |
|
28 | + $zip->extractTo($destination.DS); |
|
29 | 29 | $zip->close(); |
30 | 30 | return true; |
31 | 31 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | public function getCityByIp($ip) |
25 | 25 | { |
26 | - if(!$this->isFileExists()){ |
|
26 | + if (!$this->isFileExists()) { |
|
27 | 27 | return null; |
28 | 28 | } |
29 | 29 | $SxGeo = new GeoIP_SxGeo($this->local_file); |
@@ -17,9 +17,9 @@ |
||
17 | 17 | |
18 | 18 | public function __construct() |
19 | 19 | { |
20 | - $this->local_dir = Mage::getBaseDir('var') . DS . 'geoip'; |
|
21 | - $this->local_file = $this->local_dir . DS . 'SxGeoCity.dat'; |
|
22 | - $this->local_archive = $this->local_dir . DS . 'SxGeoCity_utf8.zip'; |
|
20 | + $this->local_dir = Mage::getBaseDir('var').DS.'geoip'; |
|
21 | + $this->local_file = $this->local_dir.DS.'SxGeoCity.dat'; |
|
22 | + $this->local_archive = $this->local_dir.DS.'SxGeoCity_utf8.zip'; |
|
23 | 23 | $this->remote_archive = 'http://sypexgeo.net/files/SxGeoCity_utf8.zip'; |
24 | 24 | } |
25 | 25 |
@@ -32,6 +32,6 @@ |
||
32 | 32 | } else { |
33 | 33 | $date = '-'; |
34 | 34 | } |
35 | - return '<div id="sync_update_date">' . $date . '</div>'; |
|
35 | + return '<div id="sync_update_date">'.$date.'</div>'; |
|
36 | 36 | } |
37 | 37 | } |
@@ -12,8 +12,8 @@ |
||
12 | 12 | */ |
13 | 13 | public function render(Varien_Data_Form_Element_Abstract $element) |
14 | 14 | { |
15 | - $info = '<fieldset class="config success-msg" style="padding-left:30px;"><a target="_blank" href="https://www.mygento.ru/"><img src="//www.mygento.ru/media/favicon/default/favicon.png" width="16" height="16" />' . $this->__('Magento Development') . '</a>'; |
|
16 | - $info.='<a style="float:right" target="_blank" href="https://github.com/mygento/geoip">' . $this->__('Module on Github') . '</a></fieldset>'; |
|
15 | + $info = '<fieldset class="config success-msg" style="padding-left:30px;"><a target="_blank" href="https://www.mygento.ru/"><img src="//www.mygento.ru/media/favicon/default/favicon.png" width="16" height="16" />'.$this->__('Magento Development').'</a>'; |
|
16 | + $info .= '<a style="float:right" target="_blank" href="https://github.com/mygento/geoip">'.$this->__('Module on Github').'</a></fieldset>'; |
|
17 | 17 | return $info; |
18 | 18 | } |
19 | 19 | } |