1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00

Broken links fix for nextprev on pages where magicquotes is enabled.

This commit is contained in:
CaMer0n
2012-07-21 05:07:21 +00:00
parent 09f789b09d
commit 19bc261d46
3 changed files with 13 additions and 7 deletions

View File

@@ -272,7 +272,7 @@ function nextprev_shortcode($parm = '')
}
$e_vars_loop = new e_vars();
$e_vars_loop->bullet = $bullet;
$e_vars_loop->bullet = stripslashes($bullet); // fix magicquotes
$ret_items = array();
for($c = $loop_start; $c < $loop_end; $c++)
{
@@ -282,7 +282,7 @@ function nextprev_shortcode($parm = '')
$label = defset($pagetitle[$c], $pagetitle[$c]);
}
$e_vars_loop->url = str_replace('[FROM]', ($perpage * ($c + $index_add)), $url);
$e_vars_loop->label = $label ? $tp->toHTML($label, false, 'TITLE') : $c + 1;
$e_vars_loop->label = $label ? $tp->toHTML(stripslashes($label), false, 'TITLE') : $c + 1; //quick fix servers with magicquotes - stripslashes()
if($c + 1 == $current_page)
{