Skip to content

Instantly share code, notes, and snippets.

@MaxLynam
Created November 23, 2012 00:30
Show Gist options
  • Save MaxLynam/4133451 to your computer and use it in GitHub Desktop.
Save MaxLynam/4133451 to your computer and use it in GitHub Desktop.
SP Share URI Fix
Line: 154
Originally:
$this->_url = substr(JURI::base(), 0, -1)."/".strstr($this->_path, 'index.php');
I modified it as follows:
// IF using SEF, this will return false.
$lkpath = strstr($this->_path, 'index.php');
if ($lkpath)
$this->_url = substr(JURI::base(), 0, -1)."/".$lkpath;
else
$this->_url = substr(JURI::base(), 0, -1).$this->_path;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment