]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- mute SID warning
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 Jul 2006 08:31:41 +0000 (08:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-sid.patch -> 1.1

eventum-sid.patch [new file with mode: 0644]

diff --git a/eventum-sid.patch b/eventum-sid.patch
new file mode 100644 (file)
index 0000000..69a3c19
--- /dev/null
@@ -0,0 +1,19 @@
+This patch is to resolve PHP Warning:
+
+PHP Notice:  Use of undefined constant SID - assumed 'SID' in /usr/share/eventum/include/class.template.php on line 202
+
+The problem is that SID constant gets defined only if session_start() has been called (or you autostart session).
+And the second issue is that this SID is never used in templates or classes.
+
+so i'm removing it.
+
+--- eventum-20060725/include/class.template.php~       2006-07-25 10:34:23.330668461 +0300
++++ eventum-20060725/include/class.template.php        2006-07-26 11:27:17.567040087 +0300
+@@ -199,7 +199,6 @@
+         $this->assign("app_base_url", APP_BASE_URL);
+         $this->assign("rel_url", APP_RELATIVE_URL);
+         $this->assign("locale", APP_CURRENT_LOCALE);
+-        $this->assign("SID", SID);
+         // now for the browser detection stuff
+         Net_UserAgent_Detect::detect();
This page took 0.031842 seconds and 4 git commands to generate.