changeset 129:16c3ee204330

Fixes flag.
author Tom Fredrik Blenning <bfg@bfgconsult.no>
date Wed, 28 Dec 2022 11:20:19 +0100
parents ef487503dded
children ee5f98a0bc93
files Flag.inc flag.php
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Flag.inc	Wed Dec 28 01:05:33 2022 +0100
+++ b/Flag.inc	Wed Dec 28 11:20:19 2022 +0100
@@ -3,7 +3,6 @@
  * @file
  * Displays a flag, in an active or disabled state, depending on parameters
  */
-define(DEBUG,0);
 
 include_once 'CacheTimeCheck.inc';
 
@@ -91,4 +90,4 @@
       return $flag;
     }
   }
-}
\ No newline at end of file
+}
--- a/flag.php	Wed Dec 28 01:05:33 2022 +0100
+++ b/flag.php	Wed Dec 28 11:20:19 2022 +0100
@@ -3,8 +3,7 @@
  * @file
  * Displays a flag, in an active or disabled state, depending on parameters
  */
-define(DEBUG,0);
-
+include_once 'constants.inc';
 include_once 'CacheTimeCheck.inc';
 
 /// @cond
@@ -19,3 +18,4 @@
   errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
 }
 /// @endcond
+?>