У тебя есть функция function createTOC в файле mospaging.php
Замени на эту :
function createTOC( &$row, &$matches, &$page ) {
global $Itemid;
$nonseflink = 'index.php?option=com_content&task=view&id='. $row->id .'&Itemid='. $Itemid;
$link = 'index.php?option=com_content&task=view&id='. $row->id .'&Itemid='. $Itemid;
$link = sefRelToAbs( $link );
$heading = $row->title;
// allows customization of first page title by checking for `heading` attribute in first bot
if ( @$matches[0][2] ) {
parse_str( html_entity_decode( $matches[0][2] ), $args );
if ( @$args['heading'] ) {
$heading = $args['heading'];
$row->title .= ' - '. $heading;
}
}
// TOC Header
$row->toc = '
<table border=0 cellpadding="0" cellspacing="0" class="contenttoc" align="right" width=200 cellspacing="2" cellpadding="2">
<tr><td width=10 style="background:#ffffff;"></td>
<th><span style="FONT-SIZE: 10px; FONT-WEIGHT: bold;">'
. $heading .
'</th>
</tr>
';
$active_page=0;
$active_page=intval( mosGetParam( $_REQUEST, 'limitstart', '' ) );
if (!$active_page){$Cl="toclink_active";} else {$Cl="toclink";}
$row->toc .= '
<tr><td width=10 style="background:#ffffff;"></td>
<td class="ctr">
<a href="'. $link .'" class="'.$Cl.'">Страница 1</a>
</td>
</tr>
';
$i = 2;
$args2 = array();
foreach ( $matches as $bot ) {
$link = $nonseflink .'&limit=1&limitstart='. ($i-1);
$link = sefRelToAbs( $link );
if ($active_page==($i-1)){$Cl="toclink_active";} else {$Cl="toclink";}
if ( @$bot[2] ) {
parse_str( html_entity_decode( $bot[2] ), $args2 );
if ( @$args2['title'] ) {
$row->toc .= '
<tr><td width=10 style="background:#ffffff;"></td>
<td class="ctr">
<a href="'. $link .'" class="'.$Cl.'">'
. stripslashes( $args2['title'] ) .
'</a>
</td>
</tr>
';
} else {
$row->toc .= '
<tr><td width=10 style="background:#ffffff;"></td>
<td class="ctr">
<a href="'. $link .'" class=".$Cl.">'
. _PN_PAGE .' '. $i .
'</a>
</td>
</tr>
';
}
} else {
$row->toc .= '
<tr><td width=10 style="background:#ffffff;"></td>
<td class="ctr">
<a href="'. $link .'" class="'.$Cl.'">'
. _PN_PAGE .' '. $i .
'</a>
</td>
</tr>';
}
$i++;
}
$row->toc .= '<tr><td style="background:#ffffff;"></td><td></td></tr></table>';
}