summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-14 19:31:02 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-14 19:31:02 +0000
commitf0dd6bfb754c492f4a821b0a1870d705da228344 (patch)
treef1aacd5aa4a1b1e66e58056ed7d0534e82fa59e1
parentd32216f8b6cfca4901ad31f634bb6b846c832f48 (diff)
downloadbrdo-f0dd6bfb754c492f4a821b0a1870d705da228344.tar.gz
brdo-f0dd6bfb754c492f4a821b0a1870d705da228344.tar.bz2
- small improvement to submission form
-rw-r--r--submit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/submit.php b/submit.php
index 3df473832..8cc9d870e 100644
--- a/submit.php
+++ b/submit.php
@@ -4,7 +4,10 @@ include_once "includes/common.inc";
function submit_type($name, $module) {
global $modules;
- if ($module[user]) $modules = array_merge(($modules ? $modules : array()), array($name => $name));
+ if ($module[user]) {
+ $type = module_execute($name, "type");
+ $modules[$name] = $type[1];
+ }
}
$theme->header();