1
0
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:
Máté Bartus
2017-09-09 12:09:50 +02:00
4 changed files with 44 additions and 6 deletions

View File

@@ -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;
}
}