浏览代码

on second thought, revise r12527 to use one, generic constant
PAGE_NAME, because that doesn't clutter the namespace as much.

Thijs Kinkhorst 18 年之前
父节点
当前提交
c54face6b0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/init.php
  2. 1 1
      src/signout.php

+ 1 - 1
include/init.php

@@ -417,7 +417,7 @@ switch ($sInitLocation) {
             // signout page will deal with users who aren't logged
             // in on its own; don't show error here
             //
-            if ( defined('PAGE_SIGNOUT') ) {
+            if ( defined('PAGE_NAME') && PAGE_NAME == 'signout' ) {
                 return;
             }
 

+ 1 - 1
src/signout.php

@@ -12,7 +12,7 @@
  */
 
 /** This is the signout page */
-define('PAGE_SIGNOUT', 1);
+define('PAGE_NAME', 'signout');
 
 /**
  * Include the SquirrelMail initialization file.