aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-03 20:37:47 +0100
committerSem <sembrestels@riseup.net>2011-11-03 20:37:47 +0100
commita8e625f47a8b197f6cb89b67f37ef5d0a756619d (patch)
tree1f1df7f065d8c2961d33eb58d2ff484d5dfe4108 /index.php
parentde84bf42063eae58bd5832d125c6445b5315baaf (diff)
downloadelgg-a8e625f47a8b197f6cb89b67f37ef5d0a756619d.tar.gz
elgg-a8e625f47a8b197f6cb89b67f37ef5d0a756619d.tar.bz2
Removed all $CONFIG and pg/ appearitions.
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/index.php b/index.php
index 0c78470f3..4ca5495e1 100644
--- a/index.php
+++ b/index.php
@@ -8,8 +8,6 @@
* @author Prateek Choudhary <synapticfield@gmail.com>
* @copyright Prateek Choudhary
*/
-
-global $CONFIG;
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
@@ -32,14 +30,14 @@ if(isset($container_guid) && !empty($container_guid)) {
}
}
-elgg_push_breadcrumb(elgg_echo('videolist:find'), $CONFIG->wwwroot."mod/videolist/all.php");
+elgg_push_breadcrumb(elgg_echo('videolist:find'), elgg_get_site_url()."videolist/all");
elgg_push_breadcrumb(sprintf(elgg_echo("videolist:home"),$page_owner->name));
$title = sprintf(elgg_echo("videolist:home"), "$owner->name");
//set videolist header
if(page_owner() == get_loggedin_userid()) {
// get the filter menu
- $friend_link = $CONFIG->wwwroot . "pg/videolist/friends/" . $page_owner->username;
+ $friend_link = elgg_get_site_url() . "videolist/friends/" . $page_owner->username;
$area1 .= elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'videolist', 'friend_link' => $friend_link));
}elseif(page_owner_entity() instanceof ElggGroup){
$area1 .= elgg_view('navigation/breadcrumbs');
@@ -67,4 +65,4 @@ set_context('videolist');
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
// Finally draw the page
-page_draw($title, $body); \ No newline at end of file
+page_draw($title, $body);