mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
databases/phppgadmin: fix for PHP8
PR: 263759
This commit is contained in:
parent
af540affdf
commit
f16b3f9ae2
@ -3,7 +3,7 @@
|
||||
PORTNAME= phppgadmin
|
||||
DISTVERSIONPREFIX= REL_
|
||||
DISTVERSION= 7-13-0
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases www
|
||||
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
|
||||
|
||||
|
14
databases/phppgadmin/files/patch-adodb-postgres64.inc.php
Normal file
14
databases/phppgadmin/files/patch-adodb-postgres64.inc.php
Normal file
@ -0,0 +1,14 @@
|
||||
--- libraries/adodb/drivers/adodb-postgres64.inc.php.orig 2020-11-07 06:09:12 UTC
|
||||
+++ libraries/adodb/drivers/adodb-postgres64.inc.php
|
||||
@@ -122,6 +122,11 @@ WHERE relkind in ('r','v') AND (c.relname='%s' or c.re
|
||||
// changes the metaColumnsSQL, adds columns: attnum[6]
|
||||
}
|
||||
|
||||
+ function __construct()
|
||||
+ {
|
||||
+ // changes the metaColumnsSQL, adds columns: attnum[6]
|
||||
+ }
|
||||
+
|
||||
function ServerInfo()
|
||||
{
|
||||
if (isset($this->version)) return $this->version;
|
11
databases/phppgadmin/files/patch-all_db.php
Normal file
11
databases/phppgadmin/files/patch-all_db.php
Normal file
@ -0,0 +1,11 @@
|
||||
--- all_db.php.orig 2020-11-07 06:09:12 UTC
|
||||
+++ all_db.php
|
||||
@@ -199,7 +199,7 @@
|
||||
echo "\t\t<td class=\"data1\">\n";
|
||||
echo "\t\t\t<select name=\"formEncoding\">\n";
|
||||
echo "\t\t\t\t<option value=\"\"></option>\n";
|
||||
- while (list ($key) = each ($data->codemap)) {
|
||||
+ foreach ($data->codemap as $key => $value) {
|
||||
echo "\t\t\t\t<option value=\"", htmlspecialchars($key), "\"",
|
||||
($key == $_POST['formEncoding']) ? ' selected="selected"' : '', ">",
|
||||
$misc->printVal($key), "</option>\n";
|
Loading…
Reference in New Issue
Block a user