From 0b8d4632c134dd96ac9eca9038fee89bd575b88d Mon Sep 17 00:00:00 2001 From: MikeyGMT Date: Mon, 22 Aug 2016 23:32:40 +0100 Subject: [PATCH] #6 Hard Coding in e_shortcode Replace "no image assigned to this banner" BANNERLAN_39 --- e107_plugins/banner/e_shortcode.php | 2 +- e107_plugins/banner/languages/English_front.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_plugins/banner/e_shortcode.php b/e107_plugins/banner/e_shortcode.php index 37f6d0e7c..8aab2ffac 100644 --- a/e107_plugins/banner/e_shortcode.php +++ b/e107_plugins/banner/e_shortcode.php @@ -54,7 +54,7 @@ class banner_shortcodes extends e_shortcode $tp = e107::getParser(); if(!$row['banner_image']) { - return "no image assigned to this banner"; + return "".BANNERLAN_39.""; } $fileext1 = substr(strrchr($row['banner_image'], '.'), 1); diff --git a/e107_plugins/banner/languages/English_front.php b/e107_plugins/banner/languages/English_front.php index bf9689321..22da1a760 100644 --- a/e107_plugins/banner/languages/English_front.php +++ b/e107_plugins/banner/languages/English_front.php @@ -32,3 +32,4 @@ define("BANNERLAN_35", "Clickthrough IP addresses"); define("BANNERLAN_36", "Active:"); define("BANNERLAN_37", "Starts:"); //define("BANNERLAN_38", "Error"); // English LAN_ERROR +define("BANNERLAN_39", "No image assigned to this banner.");