From 4f022620ba299e11cac048ce7c8e8ccd46b9a85a Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 2 Dec 2012 05:45:05 +0100 Subject: [PATCH] Fixed error in ad_mobile_image The Ad table changed just 2 commits before --- apps/companyfront/modules/ad/actions/actions.class.php | 2 +- apps/companyfront/modules/ad/templates/showSuccess.php | 2 +- apps/userfront/modules/api/templates/getadsbygpsSuccess.json.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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()?>" }, ] -- 2.1.4