aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/pagehandler.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-11 21:57:54 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-11 21:57:54 +0000
commit00aba1bbcc50f1190c5694791d58276f96188cff (patch)
treeb1b9d538c1ea70b621693afaff2d5e0d9282634e /engine/lib/pagehandler.php
parentde0149375cdb6f6667adfe3f83b0f99d8c94b855 (diff)
downloadelgg-00aba1bbcc50f1190c5694791d58276f96188cff.tar.gz
elgg-00aba1bbcc50f1190c5694791d58276f96188cff.tar.bz2
Fixes #1501: Setting ini for mbstring.internal_encoding to utf8 to work around a PHP bug. Replaced calls to parse_str() with elgg_parse_str().
git-svn-id: http://code.elgg.org/elgg/trunk@3932 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/pagehandler.php')
-rw-r--r--engine/lib/pagehandler.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php
index 99b50a2bf..792ead84f 100644
--- a/engine/lib/pagehandler.php
+++ b/engine/lib/pagehandler.php
@@ -24,7 +24,7 @@ function page_handler($handler, $page) {
if (strpos($_SERVER['REQUEST_URI'], '?') !== FALSE) {
$query = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1);
if (isset($query)) {
- parse_str($query, $query_arr);
+ elgg_parse_str($query, $query_arr);
if (is_array($query_arr)) {
foreach($query_arr as $name => $val) {
set_input($name, $val);
@@ -32,7 +32,7 @@ function page_handler($handler, $page) {
}
}
}
-
+
// if page url ends in a / then last element of $page is an empty string
$page = explode('/',$page);
@@ -65,15 +65,15 @@ function page_handler($handler, $page) {
* Now for all URLs of type http://yoururl/pg/blog/*, the blog_page_handler() function will be called.
* The part of the URL marked with * above will be exploded on '/' characters and passed as an
* array to that function.
- * For example, the URL http://yoururl/blog/username/friends/ would result in the call:
+ * For example, the URL http://yoururl/blog/username/friends/ would result in the call:
* blog_page_handler(array('username','friends'), blog);
- *
+ *
* Page handler functions should return true or the default page handler will be called.
- *
+ *
* A request to register a page handler with the same identifier as previously registered
* handler will replace the previous one.
- *
- * The context is set to the page handler identifier before the registered
+ *
+ * The context is set to the page handler identifier before the registered
* page handler function is called. For the above example, the context is set to 'blog'.
*
* @param string $handler The page type to handle