From 3dca67172ea4a026390672e6174612868332985c Mon Sep 17 00:00:00 2001
From: Michael Fairchild <mfairchild365@gmail.com>
Date: Wed, 2 Mar 2016 11:05:42 -0600
Subject: [PATCH] Fix references to functions that no longer exist

---
 plugins/cas_auth_unl/start.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/cas_auth_unl/start.php b/plugins/cas_auth_unl/start.php
index bd218f18..e2ff89c6 100644
--- a/plugins/cas_auth_unl/start.php
+++ b/plugins/cas_auth_unl/start.php
@@ -81,8 +81,8 @@
     }
 
     function cas_auth_unl_getemail_page_handler($page) {
-        if (!isloggedin()) {
-            page_draw(elgg_echo('Your Email'), elgg_view("account/forms/getemail")); 
+        if (!elgg_get_logged_in_user_entity()) {
+            echo elgg_view_page(elgg_echo('Your Email'), elgg_view("account/forms/getemail")); 
         } else {
             forward();
         }
-- 
GitLab