Joomla! extensions; Add tag {'qlwiki'} into article text. Via url parameter you can connect to a wiki; e. g.: {'qlwiki url=http://de.wikipedia.org/wiki/Joomla'}.
0
stars
0
forks
source link
Wrong readmore link from getReadAll() when no query string #6
Plugin settings
Tag in Article
{qlwiki url="https://de.wikipedia.org/wiki/Joomla"}
Result
The readmore
href
is empty instead ofhttps://de.wikipedia.org/wiki/Joomla
.Reason
$url = substr($this->states['url'], 0, strpos($this->states['url'], '?'));
returns an empty string because
strpos($this->states['url'], '?')
returnsfalse
when there is no?
in url.Temporary solution in method
getReadAll()