a1df926
diff --git a/scripts/checkin.php b/scripts/checkin.php
a1df926
index 054d48a..bca3b99 100644
a1df926
--- a/scripts/checkin.php
a1df926
+++ b/scripts/checkin.php
a1df926
@@ -17,6 +17,8 @@
a1df926
 # along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
a1df926
 # See the README and LICENSE files for details
a1df926
 
a1df926
+putenv('MANTIS_CONFIG=/etc/mantis/config_inc.php');
a1df926
+
a1df926
 global $g_bypass_headers;
a1df926
 $g_bypass_headers = 1;
a1df926
 require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );
a1df926
diff --git a/scripts/send_emails.php b/scripts/send_emails.php
a1df926
index b6dce6e..7b9eae6 100644
a1df926
--- a/scripts/send_emails.php
a1df926
+++ b/scripts/send_emails.php
a1df926
@@ -17,6 +17,8 @@
a1df926
 # along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
a1df926
 # See the README and LICENSE files for details
a1df926
 
a1df926
+putenv('MANTIS_CONFIG=/etc/mantis/config_inc.php');
a1df926
+
a1df926
 global $g_bypass_headers;
a1df926
 $g_bypass_headers = 1;
a1df926