diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-28 18:53:04 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-28 18:53:04 +0000 |
commit | 20cae639af33cabf98f8b340a6f5c5e121e9787e (patch) | |
tree | 8b0c05e1711a58827984d7073e0de9989d7ea722 /mod/riverdashboard/views/default | |
parent | dd2381740cf67a73e9bb9b7455e23ed983b9a5e2 (diff) | |
download | elgg-20cae639af33cabf98f8b340a6f5c5e121e9787e.tar.gz elgg-20cae639af33cabf98f8b340a6f5c5e121e9787e.tar.bz2 |
activity widget default tweaked
git-svn-id: https://code.elgg.org/elgg/trunk@3000 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/views/default')
-rw-r--r-- | mod/riverdashboard/views/default/widgets/river_widget/edit.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/riverdashboard/views/default/widgets/river_widget/edit.php b/mod/riverdashboard/views/default/widgets/river_widget/edit.php index 20f934c4c..7ec44b38c 100644 --- a/mod/riverdashboard/views/default/widgets/river_widget/edit.php +++ b/mod/riverdashboard/views/default/widgets/river_widget/edit.php @@ -8,6 +8,13 @@ * @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ */ + + if(!$vars['entity']->content_type) + $content_type = 'mine'; + else + $content_type = $vars['entity']->content_type; + + ?> <p> <?php echo elgg_echo('river:widget:label:displaynum'); ?> @@ -23,7 +30,7 @@ <?php echo elgg_echo('river:widget:type'); ?> <select name="params[content_type]"> - <option value="mine" <?php if ($vars['entity']->content_type == 'mine') echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:mine");?></option> - <option value="friends" <?php if (($vars['entity']->content_type != 'mine')) echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:friends");?></option> + <option value="mine" <?php if ($content_type == 'mine') echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:mine");?></option> + <option value="friends" <?php if ($content_type != 'mine') echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:friends");?></option> </select> </p>
\ No newline at end of file |