[foundation-web] For PHP 7.x to work we need compatibility pieces, else we rewrite the entire app



commit c08cf3dc8d4f709a5afe11a12d5cfcc6aab8386b
Author: Andrea Veri <averi redhat com>
Date:   Wed May 13 19:24:27 2020 +0200

    For PHP 7.x to work we need compatibility pieces, else we rewrite the entire app

 foundation.gnome.org/vote/include/Makefile.am      | 1 +
 foundation.gnome.org/vote/include/election-sql.php | 2 ++
 2 files changed, 3 insertions(+)
---
diff --git a/foundation.gnome.org/vote/include/Makefile.am b/foundation.gnome.org/vote/include/Makefile.am
index e2a5bcd..469a00b 100644
--- a/foundation.gnome.org/vote/include/Makefile.am
+++ b/foundation.gnome.org/vote/include/Makefile.am
@@ -5,6 +5,7 @@ urlpath = /vote/include
 page_SCRIPTS =
 
 page_DATA = \
+       mysql_compat.inc.php    \
        election-sql.php        \
        step1-login.php         \
        step2-choose.php        \
diff --git a/foundation.gnome.org/vote/include/election-sql.php 
b/foundation.gnome.org/vote/include/election-sql.php
index 09991c3..9f08841 100644
--- a/foundation.gnome.org/vote/include/election-sql.php
+++ b/foundation.gnome.org/vote/include/election-sql.php
@@ -1,5 +1,7 @@
 <?php
 
+include_once('mysql_compat.inc.php');
+
 $has_config = FALSE;
 
 $mysql_host = "";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]