From 3dc9dd82726f14460cd43d1a0560fe1df83d40ce Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Wed, 27 Jan 2010 16:47:32 +0000
Subject: [PATCH] replace hardcoded ucommrasmussen with the dynamic site url

---
 plugins/cas_auth_unl/actions/login.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/cas_auth_unl/actions/login.php b/plugins/cas_auth_unl/actions/login.php
index 1a573b88..dbb1ecbf 100644
--- a/plugins/cas_auth_unl/actions/login.php
+++ b/plugins/cas_auth_unl/actions/login.php
@@ -34,9 +34,10 @@
         if ($usecas == 'yes') {
 			$casObject = new elggSimpleCas();
 			if (!$casObject->checkCas()) {
+				global $CONFIG;
 				$ts = time();
 				$token = generate_action_token($ts); 
-		        SimpleCAS::setURL('http://ucommrasmussen.unl.edu/workspace/UNL_Elgg/elgg/action/login?usecas=yes&__elgg_ts='.$ts.'&__elgg_token='.$token);
+		        SimpleCAS::setURL($CONFIG->url.'action/login?usecas=yes&__elgg_ts='.$ts.'&__elgg_token='.$token);
         		$casObject->forceCas();
 			} else {
 				$cas_user = $casObject->getUserCas();
-- 
GitLab