forked from pool/phpPgAdmin
d7ea12f377
update to 7.12.1 OBS-URL: https://build.opensuse.org/request/show/816160 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpPgAdmin?expand=0&rev=24
21 lines
772 B
Diff
21 lines
772 B
Diff
Index: libraries/lib.inc.php
|
|
===================================================================
|
|
--- libraries/lib.inc.php.orig
|
|
+++ libraries/lib.inc.php
|
|
@@ -27,12 +27,12 @@
|
|
exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
|
|
|
|
// Check to see if the configuration file exists, if not, explain
|
|
- if (file_exists('conf/config.inc.php')) {
|
|
+ if (file_exists('/etc/phpPgAdmin/config.inc.php')) {
|
|
$conf = array();
|
|
- include('./conf/config.inc.php');
|
|
+ include('/etc/phpPgAdmin/config.inc.php');
|
|
}
|
|
else {
|
|
- echo 'Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.';
|
|
+ echo 'Configuration error: Can not include config /etc/phpPgAdmin/config.inc.php.';
|
|
exit;
|
|
}
|
|
|