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) == '.')