# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/comprofiler.class.php +++ administrator/components/com_comprofiler/comprofiler.class.php @@ -886,6 +886,8 @@ */ function writePagesLinks($limitstart, $limit, $total,$ue_base_url,$search=null,$prefix='') { + global $_CB_framework; + $limitstart = max( (int) $limitstart, 0 ); $limit = max( (int) $limit, 1 ); $total = (int) $total; @@ -912,6 +914,8 @@ $stop_loop = $total_pages; } + $ue_base_url = str_replace( $_CB_framework->getCfg( 'live_site' ) . '/', '', $ue_base_url ); + if ($this_page > 1) { $page = ($this_page - 2) * $limit; $ret .= "\n<< " . _UE_FIRST_PAGE . "";