]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2913 - directs the user to admin dashboard when installer finishes
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 26 Feb 2011 21:32:05 +0000 (21:32 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 26 Feb 2011 21:32:05 +0000 (21:32 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8497 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/admin.php
install/ElggInstaller.php
languages/en.php
views/default/css/admin.php
views/default/widgets/admin_welcome/content.php [new file with mode: 0644]

index 4e9f202c036194ca30c630126c346f632557e9e1..0ea029cdc5cd94a1ffbd99464b638429a7bad337 100644 (file)
@@ -219,7 +219,7 @@ function admin_init() {
        ));
                        
        // widgets
-       $widgets = array('online_users', 'new_users', 'content_stats');
+       $widgets = array('online_users', 'new_users', 'content_stats', 'admin_welcome');
        foreach ($widgets as $widget) {
                elgg_register_widget_type(
                                $widget,
index aaa7860332850c629efbb7ffd48b9a827ed9a791..aa5903a08a14fb1cf7d81831488bff2878ba9f6c 100644 (file)
@@ -26,16 +26,15 @@ class ElggInstaller {
 
        protected $isAction = FALSE;
 
-       protected $autoLogin = FALSE;
+       protected $autoLogin = TRUE;
 
        /**
         * @var array An array of widgets to add to the admin dashboard.
         *
-        * @warning Columbus start on the right at 1.
         * In the form column => array of handlers in order, top to bottom
         */
        protected $adminWidgets = array(
-               1 => array('content_stats'),
+               1 => array('admin_welcome', 'content_stats'),
                2 => array('online_users', 'new_users'),
        );
 
@@ -507,7 +506,7 @@ class ElggInstaller {
 
                $params = array();
                if ($this->autoLogin) {
-                       $params['destination'] = 'pg/admin/plugins/simple';
+                       $params['destination'] = 'pg/admin/';
                } else {
                        $params['destination'] = 'index.php';
                }
index d5575f57237e62e7a11f073fa6441d4f00466543..f87f3bec5d71306ebb7de9d204fa8aa2dc700f4a 100644 (file)
@@ -553,6 +553,8 @@ $english = array(
        'admin:widget:content_stats:help' => 'Keep track of the content created by your users',
        'widget:content_stats:type' => 'Content type',
        'widget:content_stats:number' => 'Number',
+       'admin:widget:admin_welcome' => 'Welcome',
+       'admin:widget:admin_welcome:help' => "A short introduction to Elgg's admin area",
 
 /**
  * Plugins
index acb5a384dd0e22099df31322c3368429d152573a..0b8aec774750987d7f52e25706cf5dd6a415740c 100644 (file)
@@ -509,7 +509,7 @@ input[type="submit"]:hover, .elgg-button-submit:hover, .elgg-button-action:hover
        WIDGETS
 *************************************** */
 .elgg-widgets {
-       float: right;
+       float: left;
        min-height: 30px;
 }
 .elgg-widget-add-control {
diff --git a/views/default/widgets/admin_welcome/content.php b/views/default/widgets/admin_welcome/content.php
new file mode 100644 (file)
index 0000000..dd70788
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+/**
+ * Welcome widget for admins
+ */
+
+?>
+Welcome to Elgg
\ No newline at end of file