1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 05:31:58 +02:00

#6 Hard Coding in e_shortcode

Replace "no image assigned to this banner" BANNERLAN_39
This commit is contained in:
MikeyGMT 2016-08-22 23:32:40 +01:00
parent 17382b25ac
commit 0b8d4632c1
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class banner_shortcodes extends e_shortcode
$tp = e107::getParser();
if(!$row['banner_image'])
{
return "<a href='".e_HTTP.'banner.php?'.$row['banner_id']."' rel='external'>no image assigned to this banner</a>";
return "<a href='".e_HTTP.'banner.php?'.$row['banner_id']."' rel='external'>".BANNERLAN_39."</a>";
}
$fileext1 = substr(strrchr($row['banner_image'], '.'), 1);

View File

@ -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.");