1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Merge pull request #1815 from MikeyGMT/master

#6 Hard Coding in Banner e_shortcode
This commit is contained in:
Cameron 2016-08-24 18:28:20 -07:00 committed by GitHub
commit 8c52c8aa4e
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.");