added message when a selected module is not yet ready

This commit is contained in:
Roland Gruber 2005-08-02 19:06:29 +00:00
parent cd31c1ba13
commit 48e390159f
1 changed files with 10 additions and 3 deletions

View File

@ -862,10 +862,17 @@ class accountContainer {
$this->subpage='attributes'; $this->subpage='attributes';
} }
else for ($i=1; $i<count($this->order); $i++ ) else for ($i=1; $i<count($this->order); $i++ )
if (isset($post['form_main_'.$this->order[$i]]) && ($this->module[$this->order[$i]]->module_ready())) { if (isset($post['form_main_'.$this->order[$i]])) {
if ($this->module[$this->order[$i]]->module_ready()) {
$this->current_page = $i; $this->current_page = $i;
$this->subpage='attributes'; $this->subpage='attributes';
} }
else {
StatusMessage('ERROR', _('The module %s is not yet ready.'),
_('Please enter the account information on the other pages first.'),
array($this->module[$this->order[$i]]->get_alias()));
}
}
} }
// Write HTML-Code // Write HTML-Code
echo $_SESSION['header']; echo $_SESSION['header'];