aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2013-09-06 12:48:09 -0700
committerDavid King <imkingdavid@gmail.com>2013-09-06 12:48:09 -0700
commit2ccc992da16cf4feaefef3deb230b1b7cae2cac3 (patch)
treeb3167f977da25ffb3873ea947044832b934bcf57
parent010da72f64ce325c27fb68c5c142ec01e1e53e61 (diff)
downloadforums-2ccc992da16cf4feaefef3deb230b1b7cae2cac3.tar
forums-2ccc992da16cf4feaefef3deb230b1b7cae2cac3.tar.gz
forums-2ccc992da16cf4feaefef3deb230b1b7cae2cac3.tar.bz2
forums-2ccc992da16cf4feaefef3deb230b1b7cae2cac3.tar.xz
forums-2ccc992da16cf4feaefef3deb230b1b7cae2cac3.zip
[ticket/11824] Fix logic
PHPBB3-11824
-rw-r--r--phpBB/includes/functions.php2
-rw-r--r--phpBB/language/en/acp/board.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 3ff7716edd..2a3157ffbe 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5750,7 +5750,7 @@ function phpbb_get_web_root_path(Request $symfony_request, $phpbb_root_path = ''
$corrections = substr_count($path_info, '/');
// We need to account for whether or not app.php is in the URL
- if (strpos($symfony_request->server->get('REQUEST_URI', ''), 'app.' . $phpEx) !== false)
+ if (strpos($symfony_request->server->get('REQUEST_URI', ''), 'app.' . $phpEx . '/') === false)
{
$corrections -= 1;
}
diff --git a/phpBB/language/en/acp/board.php b/phpBB/language/en/acp/board.php
index 369317e6c9..cde96fe2fd 100644
--- a/phpBB/language/en/acp/board.php
+++ b/phpBB/language/en/acp/board.php
@@ -428,8 +428,8 @@ $lang = array_merge($lang, array(
'ICONS_PATH' => 'Post icons storage path',
'ICONS_PATH_EXPLAIN' => 'Path under your phpBB root directory, e.g. <samp>images/icons</samp>.',
'MOD_REWRITE_ENABLE' => 'Enable URL Rewriting',
- 'MOD_REWRITE_ENABLE_EXPLAIN' => 'When disabled, URL paths will include app.php. When enabled, URL paths will not include app.php.<br /><strong>This option requires the Apache module <samp>mod_rewrite</samp> to be enabled and the appropriate rewrite rules must be present in <samp>.htaccess</samp>.</strong>',
- 'MOD_REWRITE_DISABLED' => 'The <samp>mod_rewrite</samp> module on your Apache web server is disabled. Enable the module or contact your web hosting provider if you wish to enable this feature.',
+ 'MOD_REWRITE_ENABLE_EXPLAIN' => 'When disabled, URL paths will include app.php. When enabled, URL paths will not include app.php.<br /><strong>This option requires the Apache module mod_rewrite to be enabled and the appropriate rewrite rules must be present in .htaccess.</strong>',
+ 'MOD_REWRITE_DISABLED' => 'The <strong>mod_rewrite</strong> module on your Apache web server is disabled. Enable the module or contact your web hosting provider if you wish to enable this feature.',
'MOD_REWRITE_INFORMATION_UNAVAILABLE' => 'We are unable to determine whether or not this server supports URL rewriting. This setting may be enabled but if URL rewriting is not available, paths generated by this board (such as for use in links) may be broken. Contact your web hosting provider if you are unsure whether or not you can safely enable this feature.',
'PATH_SETTINGS' => 'Path settings',
'RANKS_PATH' => 'Rank image storage path',