From c9c1d075205240f0b54c29255351f5251cf1f9fa Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Tue, 20 Jul 2010 05:14:39 +0000
Subject: [PATCH] remove call to unl_theme/actions/login.php - that file had
 previously been removed since it was just a duplicate of the core file

---
 plugins/unl_theme/start.php | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/plugins/unl_theme/start.php b/plugins/unl_theme/start.php
index d4f84017..a1b1b907 100644
--- a/plugins/unl_theme/start.php
+++ b/plugins/unl_theme/start.php
@@ -1,8 +1,8 @@
 <?php
 
 /* Initialize the theme */
-function unl_theme_init(){
-	
+function unl_theme_init()
+{
 	//If user is signed into UNL SSO but not planet red and they visit planet red - try logging them in
 /*	if ($_COOKIE['unl_sso'] && !isloggedin() && get_input('action') != 'login') {	
 		$ts = time();
@@ -16,7 +16,8 @@ function unl_theme_init(){
 register_elgg_event_handler('init','system','unl_theme_init');
 
 
-function unl_profileupdate () {
+function unl_profileupdate ()
+{
 	/**
 	 * Enroll user in group for their selected college when possible.
 	 **/
@@ -44,23 +45,17 @@ function unl_profileupdate () {
 		$group_guid = $college_groups_guids[$college];
 		$group = get_entity($group_guid);
 		
-		if ($group->join($user))
-			{
+		if ($group->join($user)) {
 				system_message(elgg_echo("groups:joined"));
-
+				
 				// Remove any invite or join request flags
 				remove_entity_relationship($group->guid, 'invited', $user->guid);
 				remove_entity_relationship($user->guid, 'membership_request', $group->guid);
-
+				
 				// add to river
 				add_to_river('river/group/create','join',$user->guid,$group->guid);
 			}
 	}
-	
-    
 }
 
 register_elgg_event_handler('profileupdate','all','unl_profileupdate');
-
-register_action("login",false,$CONFIG->pluginspath. "unl_theme/actions/login.php"); 
-?>
\ No newline at end of file
-- 
GitLab