mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13113] Updates the base url only when the front-end isn't app.php
PHPBB3-13113
This commit is contained in:
37
tests/controller/helper_route_other_app.php
Normal file
37
tests/controller/helper_route_other_app.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/common_helper_route.php';
|
||||
|
||||
class phpbb_controller_helper_route_other_app_test extends phpbb_controller_common_helper_route
|
||||
{
|
||||
protected function get_phpbb_root_path()
|
||||
{
|
||||
return './../';
|
||||
}
|
||||
|
||||
protected function get_uri()
|
||||
{
|
||||
return '/foo/app.php';
|
||||
}
|
||||
|
||||
protected function get_script_name()
|
||||
{
|
||||
return 'app.php';
|
||||
}
|
||||
|
||||
protected function path_to_app()
|
||||
{
|
||||
return 'foo/';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user