aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-11-14 17:04:45 -0500
committerDavid King <imkingdavid@gmail.com>2012-11-16 17:05:44 -0500
commitc54c3ee422a9bfb0878aecf80cbb298e230e4fd4 (patch)
treeaa2a0ea8271d862b9dae5bff6bb14af5c6fd6700 /phpBB
parentfa43edd8778dffd21146350f1749fad5c0755fb7 (diff)
downloadforums-c54c3ee422a9bfb0878aecf80cbb298e230e4fd4.tar
forums-c54c3ee422a9bfb0878aecf80cbb298e230e4fd4.tar.gz
forums-c54c3ee422a9bfb0878aecf80cbb298e230e4fd4.tar.bz2
forums-c54c3ee422a9bfb0878aecf80cbb298e230e4fd4.tar.xz
forums-c54c3ee422a9bfb0878aecf80cbb298e230e4fd4.zip
[feature/controller] A few minor nitpickings
PHPBB3-10864
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_url_matcher.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_url_matcher.php b/phpBB/includes/functions_url_matcher.php
index f628337dee..782acc4c20 100644
--- a/phpBB/includes/functions_url_matcher.php
+++ b/phpBB/includes/functions_url_matcher.php
@@ -35,7 +35,7 @@ function phpbb_get_url_matcher(phpbb_extension_finder $finder, RequestContext $c
return phpbb_create_url_matcher($finder, $context);
}
- if (phpbb_url_matcher_dumped($root_path, $php_ext) === false)
+ if (!phpbb_url_matcher_dumped($root_path, $php_ext))
{
phpbb_create_dumped_url_matcher($finder, $context, $root_path, $php_ext);
}
@@ -55,7 +55,8 @@ function phpbb_get_url_matcher(phpbb_extension_finder $finder, RequestContext $c
function phpbb_create_dumped_url_matcher(phpbb_extension_finder $finder, RequestContext $context, $root_path, $php_ext)
{
$provider = new phpbb_controller_provider();
- $dumper = new PhpMatcherDumper($provider->get_paths($finder)->find());
+ $routes = $provider->get_paths($finder)->find();
+ $dumper = new PhpMatcherDumper($routes);
$cached_url_matcher_dump = $dumper->dump(array(
'class' => 'phpbb_url_matcher',
));