aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/actions.php4
-rw-r--r--engine/lib/install.php10
-rw-r--r--engine/lib/sessions.php9
-rw-r--r--engine/lib/users.php6
-rw-r--r--views/default/account/forms/login.php2
5 files changed, 19 insertions, 12 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index f3d3c445b..ee8c1b09d 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -74,7 +74,7 @@
function register_action($action, $public = false, $filename = "") {
global $CONFIG;
-
+
if (!isset($CONFIG->actions)) {
$CONFIG->actions = array();
}
@@ -85,7 +85,7 @@
$filename = $path . "actions/" . $action . ".php";
}
-
+
$CONFIG->actions[$action] = array('file' => $filename, 'public' => $public);
return true;
}
diff --git a/engine/lib/install.php b/engine/lib/install.php
index 2a9026959..a4d2f5933 100644
--- a/engine/lib/install.php
+++ b/engine/lib/install.php
@@ -42,6 +42,14 @@
}
- register_action("systemsettings/install",true);
+ /**
+ * Initialisation for installation functions
+ *
+ */
+ function install_init() {
+ register_action("systemsettings/install",true);
+ }
+
+ register_event_handler("boot","system","install_init");
?> \ No newline at end of file
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index c302ed3cc..2995c1723 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -172,6 +172,10 @@
if ($_SESSION['id'] > 0) {
// set_last_action($_SESSION['id']);
}
+
+ register_action("login",true);
+ register_action("logout");
+
}
/**
@@ -183,11 +187,6 @@
}
register_event_handler("boot","system","session_init",1);
-
- //register actions *************************************************************
-
- register_action("login",true);
- register_action("logout");
?> \ No newline at end of file
diff --git a/engine/lib/users.php b/engine/lib/users.php
index a4a9bded4..f9fc09ae0 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -689,14 +689,14 @@
register_page_handler('friends','friends_page_handler');
register_page_handler('friendsof','friends_of_page_handler');
+ register_action("register",true);
+ register_action("friends/add");
+ register_action("friends/remove");
}
//register actions *************************************************************
- register_action("register",true);
- register_action("friends/add");
- register_action("friends/remove");
register_event_handler('init','system','users_init',0);
?> \ No newline at end of file
diff --git a/views/default/account/forms/login.php b/views/default/account/forms/login.php
index c17f87b33..1e4407f99 100644
--- a/views/default/account/forms/login.php
+++ b/views/default/account/forms/login.php
@@ -12,7 +12,7 @@
*/
?>
-
+ <h2><?php echo elgg_echo('login'); ?></h2>
<div id="login-box">
<form action="<?php echo $vars['url']; ?>action/login" method="POST">
<p><label><?php echo elgg_echo('username'); ?><br /><input name="username" type="text" class="general-textarea" /></label>