diff options
-rw-r--r-- | dashboard/index.php | 2 | ||||
-rw-r--r-- | languages/en.php | 1 | ||||
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/dashboard/index.php b/dashboard/index.php index e636f06f7..6f9365bd5 100644 --- a/dashboard/index.php +++ b/dashboard/index.php @@ -23,7 +23,7 @@ $title = elgg_echo('dashboard');
// Try and get the user from the username and set the page body accordingly
- $body = elgg_view_layout('widgets',"");
+ $body = elgg_view_layout('widgets',"","",elgg_echo("dashboard:nowidgets"));
page_draw($title, $body);
diff --git a/languages/en.php b/languages/en.php index 8ee629d68..c2337c7fb 100644 --- a/languages/en.php +++ b/languages/en.php @@ -167,6 +167,7 @@ */
'dashboard' => "Dashboard",
+ 'dashboard:nowidgets' => "Your dashboard is your gateway into the site. Click 'Customise Layout' to add widgets to keep track of content and your life within the system.",
/**
* Profile
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index 715171218..55d3a1b70 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -20,8 +20,8 @@ if (empty($area1widgets) && empty($area2widgets)) { - if (isset($area3)) $area1 = $area3; - if (isset($area4)) $area2 = $area4; + if (isset($vars['area3'])) $vars['area1'] = $vars['area3']; + if (isset($vars['area4'])) $vars['area2'] = $vars['area4']; } |