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
5 include_once('./lang/translations.php');
7 // Set error reporting level to max
8 - error_reporting(E_ALL);
9 + error_reporting(E_ALL & ~E_NOTICE);
12 $appName = 'phpPgAdmin';
14 exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
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')) {
20 - include('./conf/config.inc.php');
21 + include('/etc/webapps/phpPgAdmin/config.inc.php');
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.';