aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-18 09:13:04 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-18 09:13:04 +0000
commit2ed14fb7d2a6f92b3003e04165470c89dc2e778a (patch)
tree456f04b57d601dfb61cb10eb19e2b8d542bc2243
parentc28abd698c86754521cb9c4828f9f3cbccfaf1fc (diff)
downloadelgg-2ed14fb7d2a6f92b3003e04165470c89dc2e778a.tar.gz
elgg-2ed14fb7d2a6f92b3003e04165470c89dc2e778a.tar.bz2
Fix for page handler bugs
git-svn-id: https://code.elgg.org/elgg/trunk@481 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--htaccess_dist4
-rw-r--r--mod/blog/start.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/htaccess_dist b/htaccess_dist
index 1f5102b99..e2b334af6 100644
--- a/htaccess_dist
+++ b/htaccess_dist
@@ -12,6 +12,6 @@ RewriteRule ^actions\/([A-Za-z\_\-\/]+)$ action.php?action=$1
RewriteRule ^odd\/([A-Za-z\_\-\/]+)$ odd/handler.php?guid=$1
RewriteRule ^odd\/([A-Za-z\_\-\/]+)\/([A-Za-z\_\-\/]+)\/([A-Za-z\_\-\/]+)$ odd/handler.php?guid=$1&type=$2&idname=$3
-RewriteRule ^\_css\/css\.css$ css/css.php
+RewriteRule ^\_css\/css\.css$ _css/css.php
-RewriteRule ^([A-Za-z]+)\/(.*)\/$ pagehandler.php?handler=$1&page=$2
+RewriteRule ^pg\/([A-Za-z]+)\/(.*)\/$ pagehandler.php?handler=$1&page=$2
diff --git a/mod/blog/start.php b/mod/blog/start.php
index 0df79a5cf..d1157bdaf 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -30,8 +30,8 @@
// Set up menu for logged in users
if (isloggedin()) {
- add_menu(elgg_echo('blog'), $CONFIG->wwwroot . "blog/",array(
- menu_item(elgg_echo('blog:read'),$CONFIG->wwwroot."blog/" . $_SESSION['user']->username),
+ add_menu(elgg_echo('blog'), $CONFIG->wwwroot . "pg/blog/",array(
+ menu_item(elgg_echo('blog:read'),$CONFIG->wwwroot."pg/blog/" . $_SESSION['user']->username),
menu_item(elgg_echo('blog:addpost'),$CONFIG->wwwroot."mod/blog/add.php"),
menu_item(elgg_echo('blog:everyone'),$CONFIG->wwwroot."mod/blog/everyone.php"),
));
@@ -87,7 +87,7 @@
function blog_url($blogpost) {
global $CONFIG;
- return $CONFIG->url . "blog/" . $blogpost->getOwnerEntity()->username . "/read/" . $blogpost->getGUID();
+ return $CONFIG->url . "pg/blog/" . $blogpost->getOwnerEntity()->username . "/read/" . $blogpost->getGUID();
}