summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2010-03-22 20:44:11 +0000
committerLester Caine <lester@lsces.co.uk>2010-03-22 20:44:11 +0000
commitb98d7c751c48f9a10ccf116fbe0dc7e154a6b009 (patch)
tree4d8bd05e668af587e7a85cd46293df2cd62333f4 /install.php
parentd3d24065e8511b76dbdbd6fdc973d67f16a67a6b (diff)
downloadinstall-b98d7c751c48f9a10ccf116fbe0dc7e154a6b009.tar.gz
install-b98d7c751c48f9a10ccf116fbe0dc7e154a6b009.tar.bz2
install-b98d7c751c48f9a10ccf116fbe0dc7e154a6b009.zip
eregi_replace converted for PHP5.3 compliance
Diffstat (limited to 'install.php')
-rw-r--r--install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index 0a4647b..5ff6a63 100644
--- a/install.php
+++ b/install.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/install.php,v 1.28 2009/03/06 17:07:58 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install.php,v 1.29 2010/03/22 20:44:11 lsces Exp $
* @package install
* @subpackage functions
*/
@@ -21,7 +21,7 @@ if( !empty( $_REQUEST['step'] ) && $_REQUEST['step'] == 0 ) {
// Early check of memory limit just to be sure we can run.
// Set the number '15' to a lower value if you know that the install process can handle it.
-if( get_cfg_var( 'memory_limit' ) !== FALSE && eregi_replace( 'M','',get_cfg_var( 'memory_limit' )) < 15 ) {
+if( get_cfg_var( 'memory_limit' ) !== FALSE && preg_replace( '/M/i','',get_cfg_var( 'memory_limit' )) < 15 ) {
$dir = dirname( $_SERVER['PHP_SELF'] );
// We don't use smarty to avoid using any memory since we already know there is a problem.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">