[*] Classes: Tools::property_exists() is deprecated, since PrestaShop now requires 5.1

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9408 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-10-18 09:02:57 +00:00
parent e5ae345855
commit 30835cb4c8
4 changed files with 12 additions and 9 deletions
+5 -5
View File
@@ -345,11 +345,11 @@ if ($lm->getIncludeTradFilename())
</form>
<h3 class="no-margin"><?php echo lang('Did you know?'); ?></h3>
<p>
<?php
<?php
$isoForLink = (in_array($lm->getIsoCodeSelectedLang(), array('fr', 'it', 'de', 'en', 'es')) ? $lm->getIsoCodeSelectedLang() : 'en');
echo lang('Prestashop and its community offers over 40 different languages for free download at');
?><br /><a href="http://www.prestashop.com/<?php echo $isoForLink; ?>/downloads/#lang_pack" target="_blank">http://www.prestashop.com/<?php echo $isoForLink; ?>/downloads/#lang_pack</a>
</p>
@@ -772,9 +772,9 @@ if ($lm->getIncludeTradFilename())
function getPreinstallXmlLang($object, $field)
{
if (Tools::property_exists($object, $field.'_'.((int)($_GET['language'])+1)))
if (property_exists($object, $field.'_'.((int)($_GET['language'])+1)))
return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field.'_'.((int)($_GET['language'])+1)}));
if (Tools::property_exists($object, $field.'_1'))
if (property_exists($object, $field.'_1'))
return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field.'_1'}));
return '';
}