| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) |
||
| 27 | { |
||
| 28 | $info = Mage::getModel('geoip/info'); |
||
| 29 | if ($date = $info->getDatFileDownloadDate()) { |
||
| 30 | $format = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM); |
||
| 31 | $date = Mage::app()->getLocale()->date(intval($date))->toString($format); |
||
| 32 | } else { |
||
| 33 | $date = '-'; |
||
| 34 | } |
||
| 35 | return '<div id="sync_update_date">' . $date . '</div>'; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |