diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-12-21 11:07:51 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-12-21 11:07:51 +0000 |
commit | 5c12654d814233c8b7698c67ddacbafc1f6def62 (patch) | |
tree | f1a9853fb34ed2e18c31f5c58cf193dabe4f9d4c /lib/pinq | |
parent | 7f654144170ce6e352ad67bcab9560370f69f01c (diff) | |
download | www-5c12654d814233c8b7698c67ddacbafc1f6def62.tar www-5c12654d814233c8b7698c67ddacbafc1f6def62.tar.gz www-5c12654d814233c8b7698c67ddacbafc1f6def62.tar.bz2 www-5c12654d814233c8b7698c67ddacbafc1f6def62.tar.xz www-5c12654d814233c8b7698c67ddacbafc1f6def62.zip |
Pinq, fallback mode, fix query string usage
Diffstat (limited to 'lib/pinq')
-rw-r--r-- | lib/pinq/Controller.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pinq/Controller.php b/lib/pinq/Controller.php index 29f3e69db..8bf87ce1c 100644 --- a/lib/pinq/Controller.php +++ b/lib/pinq/Controller.php @@ -227,6 +227,10 @@ class Pinq_Controller */ function fallback_to_previous_mode($uri, $lang) { + $uri = explode('?', $uri); + $qs = $uri[1]; + $uri = $uri[0]; + $alt_uri = sprintf( '/%s/%s', 'en', @@ -247,7 +251,6 @@ class Pinq_Controller foreach ($test_uris as $inc_uri) { $real_file = realpath($this->_app_root . $inc_uri); - if (file_exists($real_file) && !is_dir($real_file)) { $found = true; |