use Studip\Button, Studip\LinkButton; ?> if(!empty($flash['question_text'])) : // TODO: This will certainly break with i18n fields ?> $form_content = ['news_isvisible' => htmlReady(json_encode($news_isvisible)), 'news_selectable_areas' => htmlReady(json_encode($area_options_selectable)), 'news_selected_areas' => htmlReady(json_encode($area_options_selected)), 'news_basic_js' => '', 'news_comments_js' => '', 'news_areas_js' => '', 'news_allow_comments' => $news->allow_comments, 'news_topic' => $news->topic, 'news_body' => $news->body, 'news_startdate' => $news->date ? date('d.m.Y H:i', $news->date) : '', 'news_enddate' => $news->expire ? date('d.m.Y H:i', $news->date + $news->expire) : ''] ?> = (string) QuestionBox::create( htmlReady($flash['question_text']), URLHelper::getURL('dispatch.php/'.$route.'#anker', array_merge($flash['question_param'], $form_content)), URLHelper::getURL('dispatch.php/'.$route.'#anker', $form_content) );?> endif ?>