openbsd-ports/www/mantis/patches/patch-core_php
mbalmer ace345012f mantis is a web based bug tacking system, using php5 and a mysql database.
it is used by quite some projects now and fairly easy to use.

thanks to xsa and aanriot for their feedback
2006-10-11 18:28:27 +00:00

14 lines
532 B
Plaintext

$OpenBSD: patch-core_php,v 1.1.1.1 2006/10/11 18:28:27 mbalmer Exp $
--- core.php.orig Tue Jul 26 00:55:49 2005
+++ core.php Sun Oct 8 15:45:05 2006
@@ -48,6 +48,9 @@
if ( file_exists( dirname( __FILE__ ).DIRECTORY_SEPARATOR.'config_inc.php' ) ) {
require_once( dirname( __FILE__ ).DIRECTORY_SEPARATOR.'config_inc.php' );
$t_config_inc_found = true;
+
+ if (isset($g_placeholder) && $g_placeholder == "yes")
+ $t_config_inc_found = false;
}
# Allow an environment variable (defined in an Apache vhost for example)