diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-10 22:05:49 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-10 22:05:49 +0000 |
commit | adae1958a95d7e801de91d673e927cac348236d9 (patch) | |
tree | deb60ecca44c95abc5301b0d64bcd08585e85798 /mod/messageboard | |
parent | ea14bfe87eda3af8e8002c64ad909cf592d7fe76 (diff) | |
download | elgg-adae1958a95d7e801de91d673e927cac348236d9.tar.gz elgg-adae1958a95d7e801de91d673e927cac348236d9.tar.bz2 |
Fixes #2228: Major cleanup of urls -- remove leading pg/ and trailing / from most urls in core and plugins
git-svn-id: http://code.elgg.org/elgg/trunk@8653 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard')
-rw-r--r-- | mod/messageboard/pages/owner.php | 4 | ||||
-rw-r--r-- | mod/messageboard/start.php | 12 | ||||
-rw-r--r-- | mod/messageboard/views/default/widgets/messageboard/content.php | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/mod/messageboard/pages/owner.php b/mod/messageboard/pages/owner.php index 7a65ec68b..7fd88a9d4 100644 --- a/mod/messageboard/pages/owner.php +++ b/mod/messageboard/pages/owner.php @@ -24,9 +24,9 @@ if ($history_user) { $title = elgg_echo('messageboard:owner_history', array($history_user->name, $page_owner->name)); if ($page_owner instanceof ElggGroup) { - $mb_url = "pg/messageboard/group/$page_owner->guid/owner"; + $mb_url = "messageboard/group/$page_owner->guid/owner"; } else { - $mb_url = "pg/messageboard/owner/$page_owner->username"; + $mb_url = "messageboard/owner/$page_owner->username"; } } else { $title = elgg_echo('messageboard:owner', array($page_owner->name)); diff --git a/mod/messageboard/start.php b/mod/messageboard/start.php index f8dcd8266..349885429 100644 --- a/mod/messageboard/start.php +++ b/mod/messageboard/start.php @@ -33,10 +33,10 @@ function messageboard_init() { * Profile (and eventually group) widgets handle their own. * * URLs take the form of - * User's messageboard: pg/messageboard/owner/<username> - * Y's history of posts on X's board: pg/messageboard/owner/<X>/history/<Y> - * New post: pg/messageboard/add/<guid> (container: user or group) - * Group messageboard: pg/messageboard/group/<guid>/owner + * User's messageboard: messageboard/owner/<username> + * Y's history of posts on X's board: messageboard/owner/<X>/history/<Y> + * New post: messageboard/add/<guid> (container: user or group) + * Group messageboard: messageboard/group/<guid>/owner * * @param array $page Array of page elements * @return bool @@ -47,7 +47,7 @@ function messageboard_page_handler($page) { // if the first part is a username, forward to new format if (isset($page[0]) && !in_array($page[0], $new_section_one) && get_user_by_username($page[0])) { register_error(elgg_echo("changebookmark")); - $url = "pg/messageboard/owner/{$page[0]}"; + $url = "messageboard/owner/{$page[0]}"; forward($url); } @@ -119,7 +119,7 @@ function messageboard_add($poster, $owner, $message, $access_id = ACCESS_PUBLIC) $body = elgg_echo('messageboard:email:body', array( $poster->name, $message, - elgg_get_site_url() . "pg/messageboard/" . $owner->username, + elgg_get_site_url() . "messageboard/" . $owner->username, $poster->name, $poster->getURL() )); diff --git a/mod/messageboard/views/default/widgets/messageboard/content.php b/mod/messageboard/views/default/widgets/messageboard/content.php index 04dbb00d2..55b12f29b 100644 --- a/mod/messageboard/views/default/widgets/messageboard/content.php +++ b/mod/messageboard/views/default/widgets/messageboard/content.php @@ -23,9 +23,9 @@ $options = array( echo elgg_list_annotations($options); if ($owner instanceof ElggGroup) { - $url = "pg/messageboard/group/$owner->guid/owner"; + $url = "messageboard/group/$owner->guid/owner"; } else { - $url = "pg/messageboard/owner/$owner->username"; + $url = "messageboard/owner/$owner->username"; } echo elgg_view('output/url', array( |