aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 02:13:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 02:13:36 +0000
commitdb7b497114329dda5f560198884c5bc5fbb3c1a8 (patch)
tree35ac7546fe14a8dd372e74d823ede01e24424443 /views/default/canvas
parent6307e6af3b4a717011570e71b844c4b1e366fae5 (diff)
downloadelgg-db7b497114329dda5f560198884c5bc5fbb3c1a8.tar.gz
elgg-db7b497114329dda5f560198884c5bc5fbb3c1a8.tar.bz2
Fixes #2128 - replaces all uses of set_context() and get_context() in core and plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7215 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/canvas')
-rw-r--r--views/default/canvas/layouts/widgets.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php
index 45eff55c6..932a5ac1d 100644
--- a/views/default/canvas/layouts/widgets.php
+++ b/views/default/canvas/layouts/widgets.php
@@ -8,9 +8,9 @@
$owner = elgg_get_page_owner();
- $area1widgets = get_widgets(elgg_get_page_owner_guid(),get_context(),1);
- $area2widgets = get_widgets(elgg_get_page_owner_guid(),get_context(),2);
- $area3widgets = get_widgets(elgg_get_page_owner_guid(),get_context(),3);
+ $area1widgets = get_widgets(elgg_get_page_owner_guid(), elgg_get_context(), 1);
+ $area2widgets = get_widgets(elgg_get_page_owner_guid(), elgg_get_context(), 2);
+ $area3widgets = get_widgets(elgg_get_page_owner_guid(), elgg_get_context(), 3);
if (empty($area1widgets) && empty($area2widgets) && empty($area3widgets)) {
@@ -25,7 +25,7 @@
if(get_loggedin_userid() == elgg_get_page_owner_guid() || ($owner instanceof ElggGroup && $owner->canEdit())){
- if(get_context() == "profile") {
+ if (elgg_get_context() == "profile") {
?>
<!-- add remove widget button -->
<div class="add_widgets" style="margin:-18px 0 10px;">
@@ -88,7 +88,7 @@
<td colspan="2" align="left" valign="top">
<?php
-if(get_context() != "profile"){ /* on groups */
+if (elgg_get_context() != "profile") { /* on groups */
?>
<h2 class="profile_box"><?php echo elgg_echo("widgets:profilebox"); ?></h2>
@@ -105,7 +105,7 @@ if(get_context() != "profile"){ /* on groups */
<td rowspan="2" align="left" valign="top">
<h2><?php echo elgg_echo("widgets:rightcolumn"); ?></h2>
- <div id="rightcolumn_widgets" <?php if(get_context() != "profile")echo "class=\"long\""; ?> >
+ <div id="rightcolumn_widgets" <?php if (elgg_get_context() != "profile") echo "class=\"long\""; ?> >
<?php
$rightcolumn_widgets = "";
if (is_array($area3widgets) && sizeof($area3widgets) > 0) {
@@ -245,7 +245,7 @@ if(get_context() != "profile"){ /* on groups */
<textarea type="textarea" value="Middle widgets" style="display:none" name="debugField2" id="debugField2" /><?php echo $middlecolumn_widgets; ?></textarea>
<textarea type="textarea" value="Right widgets" style="display:none" name="debugField3" id="debugField3" /><?php echo $rightcolumn_widgets; ?></textarea>
-<input type="hidden" name="context" value="<?php echo get_context(); ?>" />
+<input type="hidden" name="context" value="<?php echo elgg_get_context(); ?>" />
<input type="hidden" name="owner" value="<?php echo elgg_get_page_owner_guid(); ?>" />
<input type="submit" onfocus="blur()" value="<?php echo elgg_echo('save'); ?>" class="submit_button" onclick="$('a.Action_Button.toggle_customise_edit_panel').click();" />
<input type="button" onfocus="blur()" value="<?php echo elgg_echo('cancel'); ?>" class="cancel_button" onclick="$('a.Action_Button.toggle_customise_edit_panel').click();" />
@@ -272,7 +272,7 @@ if(get_context() != "profile"){ /* on groups */
<?php
if(get_loggedin_userid() == elgg_get_page_owner_guid() || ($owner instanceof ElggGroup && $owner->canEdit())){
- if(get_context() != "profile") {
+ if (elgg_get_context() != "profile") {
?>
<!-- customise page button appears in different place on groups widgets -->
<div class="add_widgets">