From 9dd8ef496df4f7b67a3bf22a5edf8dd64650db02 Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 23 Apr 2009 11:48:27 +0000 Subject: [PATCH] nextprev SC multi-language fix --- e107_files/shortcode/nextprev.sc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_files/shortcode/nextprev.sc b/e107_files/shortcode/nextprev.sc index d56b80933..6d5bca6c7 100644 --- a/e107_files/shortcode/nextprev.sc +++ b/e107_files/shortcode/nextprev.sc @@ -1,7 +1,7 @@ global $pref; $e107 = e107::getInstance(); -include_lan(e_LANGUAGEDIR.'English/lan_np.php'); +include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_np.php'); $parm_count = substr_count($parm, ','); while($parm_count < 5) @@ -21,6 +21,8 @@ $pagetitle = explode('|',trim($p[5])); if($total_items < $perpage) { return ''; } + + $caption = (!$caption || $caption == 'off') ? NP_3.' ' : $caption; while(substr($url, -1) == '.')