aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 888938d97..d66563858 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -87,7 +87,7 @@ if ($callback != "true") {
<script type="text/javascript">
$(document).ready(function() {
- $("#widgetcontent<?php echo $vars['entity']->getGUID(); ?>").load("<?php echo $vars['url']; ?>pg/view/<?php echo $vars['entity']->getGUID(); ?>?shell=no&username=<?php echo page_owner_entity()->username; ?>&context=widget&callback=true");
+ $("#widgetcontent<?php echo $vars['entity']->getGUID(); ?>").load("<?php echo $vars['url']; ?>pg/view/<?php echo $vars['entity']->getGUID(); ?>?shell=no&username=<?php echo elgg_get_page_owner()->username; ?>&context=widget&callback=true");
// run function to check for widgets collapsed/expanded state
var forWidget = "widget<?php echo $vars['entity']->getGUID(); ?>";