if (strpos($sRequestUri, "?") === false)
{
//echo "no ?<br/>";
$sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "&") );
}
else
{
//echo strpos($sRequestUri, "?");
$sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "?") );
}
//echo 'Script URL: '.$sScriptUrl.'<br>';
I couldn’t really replicate the pagination, but tried to see what it might be evaluating. So I ended up with this near the end :
if (strpos($sRequestUri, "?") === false) { //echo "no ?<br/>"; $sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "&") ); } else { //echo strpos($sRequestUri, "?"); $sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "?") ); } //echo 'Script URL: '.$sScriptUrl.'<br>';
Dunno if this will help. If it does, send the money to MODx...
MattC
$50 offer is still on the table. I’m just horrible with modx since this is my first time working with the system so I appreciate anyone that can help fix this. As we speak my friend’s site has broken pagination and I need to get this working ASAP.try posting here: http://modxcms.com/forums/index.php/board,224.0.html
Anyone up to the challenge?