diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-16 15:38:13 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-16 15:38:13 +0000 |
commit | 521dfdbb059b330e34d11e0fbfa96fbf831d1d20 (patch) | |
tree | 627fdebaebdcac0e32784d71699b6347ccb6ceae /phpBB/install | |
parent | 0a7abb6b374d06524301e5a276983d1db5b17848 (diff) | |
download | forums-521dfdbb059b330e34d11e0fbfa96fbf831d1d20.tar forums-521dfdbb059b330e34d11e0fbfa96fbf831d1d20.tar.gz forums-521dfdbb059b330e34d11e0fbfa96fbf831d1d20.tar.bz2 forums-521dfdbb059b330e34d11e0fbfa96fbf831d1d20.tar.xz forums-521dfdbb059b330e34d11e0fbfa96fbf831d1d20.zip |
increase the odbc limit (64k is too low, the theme data itself is >64k)
git-svn-id: file:///svn/phpbb/trunk@8038 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rwxr-xr-x | phpBB/install/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 7b0f120577..56da3590ff 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -109,9 +109,10 @@ if (!empty($mem_limit)) { $unit = strtolower(substr($mem_limit, -1, 1)); $mem_limit = (int) $mem_limit; + if ($unit == 'k') { - $mem_limit = floor($mem_limit/1024); + $mem_limit = floor($mem_limit / 1024); } else if ($unit == 'g') { @@ -119,7 +120,7 @@ if (!empty($mem_limit)) } else if (is_numeric($unit)) { - $mem_limit = floor($mem_limit/1048576); + $mem_limit = floor((int) ($mem_limit . $unit) / 1048576); } $mem_limit = max(128, $mem_limit) . 'M'; } |