diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php index 8d8adb70d9..e1b01ced87 100644 --- a/main/inc/introductionSection.inc.php +++ b/main/inc/introductionSection.inc.php @@ -62,7 +62,14 @@ $intro_cmdUpdate = (empty($_POST['intro_cmdUpdate'])?'':$_POST['intro_cmdUpdate' $intro_cmdDel= (empty($_GET['intro_cmdDel'])?'':$_GET['intro_cmdDel']); $intro_cmdAdd= (empty($_GET['intro_cmdAdd'])?'':$_GET['intro_cmdAdd']); -$form = new FormValidator('introduction_text'); +if (!empty ($GLOBALS["_cid"])) +{ + $form = new FormValidator('introduction_text', 'post', api_get_self()."?".api_get_cidreq()); +} +else +{ + $form = new FormValidator('introduction_text'); +} $renderer =& $form->defaultRenderer(); $renderer->setElementTemplate('
\n", - "\n",get_lang('AddIntro'),"\n", - "
\n\n"; + if (!empty ($GLOBALS["_cid"])) + { + echo "\n".get_lang('AddIntro')."\n"; + } + else + { + echo "\n".get_lang('AddIntro')."\n"; + } + echo "
\n