]> git.pld-linux.org Git - packages/phpPgAdmin.git/blob - phpPgAdmin-config.patch
- updated to 5.1, not tested, release 0.1
[packages/phpPgAdmin.git] / phpPgAdmin-config.patch
1 diff -ur phpPgAdmin-5.1.orig/libraries/lib.inc.php phpPgAdmin-5.1/libraries/lib.inc.php
2 --- phpPgAdmin-5.1.orig/libraries/lib.inc.php   2013-04-14 22:59:58.000000000 +0000
3 +++ phpPgAdmin-5.1/libraries/lib.inc.php        2013-08-05 07:57:03.087116156 +0000
4 @@ -10,7 +10,7 @@
5         include_once('./lang/translations.php');
6  
7         // Set error reporting level to max
8 -       error_reporting(E_ALL);
9 +       error_reporting(E_ALL & ~E_NOTICE);
10   
11         // Application name
12         $appName = 'phpPgAdmin';
13 @@ -27,12 +27,12 @@
14                 exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
15  
16         // Check to see if the configuration file exists, if not, explain
17 -       if (file_exists('conf/config.inc.php')) {
18 +       if (file_exists('/etc/webapps/phpPgAdmin/config.inc.php')) {
19                 $conf = array();
20 -               include('./conf/config.inc.php');
21 +               include('/etc/webapps/phpPgAdmin/config.inc.php');
22         }
23         else {
24 -               echo 'Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.';
25 +               echo 'Configuration error: Copy conf/config.inc.php-dist to /etc/webapps/phpPgAdmin/config.inc.php and edit appropriately.';
26                 exit;
27         }
28  
This page took 0.073277 seconds and 3 git commands to generate.