mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
Merge branch '3.2.x'
This commit is contained in:
@@ -493,4 +493,17 @@ class path_helper
|
||||
|
||||
return $page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells if the router is currently in use (if the current page is a route or not)
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_router_used()
|
||||
{
|
||||
// Script name URI (e.g. phpBB/app.php)
|
||||
$script_name = $this->symfony_request->getScriptName();
|
||||
|
||||
return basename($script_name) === 'app.' . $this->php_ext;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user