aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/index.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-10 14:31:15 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-10 14:31:15 +0000
commit6098703c373cc3ba9793ccf2ab5f792f98f6b516 (patch)
tree3e1bf21f18d085d2cdc6c2914c06256871e55976 /phpBB/install/index.php
parent2d12eae4610c13d53013e3e4285001239f250d4b (diff)
downloadforums-6098703c373cc3ba9793ccf2ab5f792f98f6b516.tar
forums-6098703c373cc3ba9793ccf2ab5f792f98f6b516.tar.gz
forums-6098703c373cc3ba9793ccf2ab5f792f98f6b516.tar.bz2
forums-6098703c373cc3ba9793ccf2ab5f792f98f6b516.tar.xz
forums-6098703c373cc3ba9793ccf2ab5f792f98f6b516.zip
#8618 + padding store check
git-svn-id: file:///svn/phpbb/trunk@7163 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/index.php')
-rwxr-xr-xphpBB/install/index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index 6d5c8996ae..2baa7c2a2c 100755
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -255,6 +255,9 @@ class module
$this->error('No installation modules found', __LINE__, __FILE__);
}
+ // Order to use and count further if modules get assigned to the same position or not having an order
+ $max_module_order = 1000;
+
foreach ($module as $row)
{
// Check any module pre-reqs
@@ -262,6 +265,13 @@ class module
{
}
+ // Module order not specified or module already assigned at this position?
+ if (!isset($row['module_order']) || isset($this->module_ary[$row['module_order']]))
+ {
+ $row['module_order'] = $max_module_order;
+ $max_module_order++;
+ }
+
$this->module_ary[$row['module_order']]['name'] = $row['module_title'];
$this->module_ary[$row['module_order']]['filename'] = $row['module_filename'];
$this->module_ary[$row['module_order']]['subs'] = $row['module_subs'];