From: Gustavo Martin Morcuende Date: Sun, 2 Dec 2012 04:45:05 +0000 (+0100) Subject: Fixed error in ad_mobile_image X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=4f022620ba299e11cac048ce7c8e8ccd46b9a85a;p=mobi%2F.git Fixed error in ad_mobile_image The Ad table changed just 2 commits before --- diff --git a/apps/companyfront/modules/ad/actions/actions.class.php b/apps/companyfront/modules/ad/actions/actions.class.php index 76a177b..92ba8fb 100644 --- a/apps/companyfront/modules/ad/actions/actions.class.php +++ b/apps/companyfront/modules/ad/actions/actions.class.php @@ -161,7 +161,7 @@ class adActions extends sfActions //Remove picture from file system. $fs = new sfFilesystem(); - $fs->remove(sfConfig::get('app_default_picture_directory').$ad->getAdMobileImageLink()); + $fs->remove(sfConfig::get('app_default_picture_directory').$ad->getAdMobileImage()); //Remove ad from database. $ad->delete(); diff --git a/apps/companyfront/modules/ad/templates/showSuccess.php b/apps/companyfront/modules/ad/templates/showSuccess.php index e7007e9..28bbb5a 100644 --- a/apps/companyfront/modules/ad/templates/showSuccess.php +++ b/apps/companyfront/modules/ad/templates/showSuccess.php @@ -14,7 +14,7 @@ Ad mobile image link: - getAdMobileImageLink() ?> + getAdMobileImage() ?> Created at: diff --git a/apps/userfront/modules/api/templates/getadsbygpsSuccess.json.php b/apps/userfront/modules/api/templates/getadsbygpsSuccess.json.php index 0e243e6..ee91c2a 100644 --- a/apps/userfront/modules/api/templates/getadsbygpsSuccess.json.php +++ b/apps/userfront/modules/api/templates/getadsbygpsSuccess.json.php @@ -1,6 +1,6 @@ [ - { "id" : "getAd()->getId()?>", "image" : "getAd()->getAdMobileImageLink() ?>", "link" : "getAdLink()?>", + { "id" : "getAd()->getId()?>", "image" : "getAd()->getAdMobileImage() ?>", "link" : "getAdLink()?>", "text" : "getAdMobileText()?>", "adname" : "getAdName()?>" }, ]