8000 nl2br removed from competitions showing by akanyuk · Pull Request #57 · akanyuk/events · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nl2br removed from competitions showing #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/templates/competitions/main/_release.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NFW::i()->registerFunction('display_work_media');
$lang_main = NFW::i()->getLang('main');

if (!$event['one_compo_event']) {
echo nl2br($competition['announcement']);
echo $competition['announcement'];
}

// Get release works
Expand Down
2 changes: 1 addition & 1 deletion src/templates/competitions/main/_voting.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ NFW::i()->registerFunction('active_field');
</div>
</div>

<?php echo count($works) == 1 ? '' : nl2br($competition['announcement']) ?>
<?php echo count($works) == 1 ? '' : $competition['announcement'] ?>

<form id="voting" class="active-form" action="/vote?action=add_vote">
<input type="hidden" name="competition_id" value="<?php echo $competition['id'] ?>"/>
Expand Down
0