// Fix class Gender (add static keyword)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8637 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ class GenderCore extends ObjectModel
|
|||||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sql);
|
return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStaticImage($id, $useUnknown = false)
|
public static function getStaticImage($id, $useUnknown = false)
|
||||||
{
|
{
|
||||||
if (!file_exists(_PS_GENDERS_DIR_.$id.'.jpg'))
|
if (!file_exists(_PS_GENDERS_DIR_.$id.'.jpg'))
|
||||||
return ($useUnknown) ? _PS_ADMIN_IMG_.'unknown.gif' : false;
|
return ($useUnknown) ? _PS_ADMIN_IMG_.'unknown.gif' : false;
|
||||||
|
|||||||
Reference in New Issue
Block a user