From eb44c1d7070de5fca65e0945d6dbd013d7f2e5b7 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 22 Nov 2012 18:27:07 +0100 Subject: [PATCH] //small fix in adminThemeController --- controllers/admin/AdminThemesController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 5d498d56e..029f43503 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -211,9 +211,10 @@ class AdminThemesControllerCore extends AdminController if (!$paypal_installed && in_array($iso_code, $paypal_countries)) { - $this->warnings[] = $this->l('The mobile theme only works with the PayPal\'s payment module at this time. Please activate the module to enable payments.') - .'
'. - $this->l('In order to use the mobile theme you have to install and configure the PayPal module.'); + if (!$this->isXmlHttpRequest()) + $this->warnings[] = $this->l('The mobile theme only works with the PayPal\'s payment module at this time. Please activate the module to enable payments.') + .'
'. + $this->l('In order to use the mobile theme you have to install and configure the PayPal module.'); } }