[RSS Feed/News] getThreadFromUrl essentially ignores $type argument when friendly urls is off

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Calling getThreadFromUrl from an admin app context with a non-friendly public thread URL will fail.

This is because getThreadFromUrl($url, $type) calls getRoutePathFromUrl($url) which calls getExtendedUrl($url). However getExtendedUrl work with the current request object to determine the base URL, not the actual $type argument.

PHP:

Code:
public function getThreadFromUrl($url, $type = null, &$error = null)
{
   $routePath =...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom