typo
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 30 Jul 2006 08:49:14 +0000 (08:49 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 30 Jul 2006 08:49:14 +0000 (08:49 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@705 839d8a87-29fc-0310-9880-83ba4fa771e5

include/wiki.inc.php

index 2c7aa48..750df72 100644 (file)
@@ -112,15 +112,14 @@ function wiki_apply_perms($perm) {
 
       case 'logged':
         if ((empty($GLOBALS['IS_XNET_SITE']) && !XorgSession::doAuthCookie()) ||
-          ($GLOBALS['IS_XNET_SITE'] && !XnetSession::doAuth())) {
+          ($GLOBALS['IS_XNET_SITE'] && !$_SESSION['session']->doAuth())) {
             $platal = new Platal();
             $platal->force_login($page);
         }
         return;
 
       default:
-        if ((empty($GLOBALS['IS_XNET_SITE']) && !XorgSession::doAuthe()) ||
-          ($GLOBALS['IS_XNET_SITE'] && !XnetSession::doAuth())) {
+        if (!$_SESSION['session']->doAuth()) {
             $platal = new Platal();
             $platal->force_login($page);
         }