From a8e625f47a8b197f6cb89b67f37ef5d0a756619d Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 3 Nov 2011 20:37:47 +0100 Subject: Removed all $CONFIG and pg/ appearitions. --- watch.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'watch.php') diff --git a/watch.php b/watch.php index 778af59c2..4c92cc63b 100644 --- a/watch.php +++ b/watch.php @@ -8,7 +8,6 @@ * @author Prateek Choudhary * @copyright Prateek Choudhary */ -global $CONFIG; require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); @@ -26,8 +25,8 @@ if ($videos = get_entity($video_id)) { $page_owner = $_SESSION['user']; set_page_owner($page_owner->getGUID()); } - elgg_push_breadcrumb(elgg_echo('videolist:all'), $CONFIG->wwwroot."mod/videolist/all.php"); - elgg_push_breadcrumb(sprintf(elgg_echo("videolist:user"),$page_owner->name), $CONFIG->wwwroot."pg/videolist/".$page_owner->username); + elgg_push_breadcrumb(elgg_echo('videolist:all'), elgg_get_site_url()."videolist/all.php"); + elgg_push_breadcrumb(sprintf(elgg_echo("videolist:user"),$page_owner->name), elgg_get_site_url()."videolist/".$page_owner->username); elgg_push_breadcrumb(sprintf($video->title)); $area1 = elgg_view('navigation/breadcrumbs'); @@ -41,10 +40,10 @@ if ($videos = get_entity($video_id)) { $area1 .= "

".$title."

"; if ($videos->canEdit()) { $area1 .= "
- wwwroot}mod/videolist/edit.php?video={$videos->getGUID()}\">".elgg_echo('edit').""; + getGUID()}\">".elgg_echo('edit').""; $area1 .= elgg_view('output/confirmlink',array( - 'href' => $CONFIG->wwwroot . "action/videolist/delete?video=" . $videos->getGUID(), + 'href' => elgg_get_site_url() . "action/videolist/delete?video=" . $videos->getGUID(), 'text' => elgg_echo('delete'), 'is_action' => true, 'confirm' => elgg_echo('document:delete:confirm'), -- cgit v1.2.3