plugins/SpecialUserFuncs.php
changeset 953 323c4cd1aa37
parent 912 95d0d8596c87
child 960 e74741b8360b
--- a/plugins/SpecialUserFuncs.php	Mon May 04 23:07:00 2009 -0400
+++ b/plugins/SpecialUserFuncs.php	Tue May 05 00:10:26 2009 -0400
@@ -121,6 +121,10 @@
   global $__login_status;
   global $lang;
   
+  require_once(ENANO_ROOT . '/includes/math.php');
+  require_once(ENANO_ROOT . '/includes/diffiehellman.php');
+  global $dh_supported;
+  
   $locked_out = false;
   // are we locked out?
   $threshold = ( $_ = getConfig('lockout_threshold') ) ? intval($_) : 5;
@@ -607,7 +611,7 @@
       $template->load_theme($session->theme, $session->style);
       if(isset($_POST['return_to']))
       {
-        $name = ( isPage($_POST['return_to']['name']) ) ? $paths->pages[$_POST['return_to']]['name'] : $_POST['return_to'];
+        $name = get_page_title($_POST['return_to']);
         $subst = array(
             'username' => $session->username,
             'redir_target' => $name