Skip to content

Commit 02f1df6

Browse files
committed
Remove XHTML
1 parent 757bc75 commit 02f1df6

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

controller/mcp_controller.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ protected function action_delete($cannedmessage_id)
258258

259259
if ($cannedmessage['is_cat'] && $this->manager->has_children($cannedmessage))
260260
{
261-
trigger_error($this->language->lang('CANNEDMESSAGE_HAS_CHILDREN_DEL') . '<br /><br />' . $this->language->lang('RETURN_PAGE', '<a href="' . $this->get_main_u_action($cannedmessage['parent_id']) . '">', '</a>'));
261+
trigger_error($this->language->lang('CANNEDMESSAGE_HAS_CHILDREN_DEL') . '<br><br>' . $this->language->lang('RETURN_PAGE', '<a href="' . $this->get_main_u_action($cannedmessage['parent_id']) . '">', '</a>'));
262262
}
263263

264264
if (confirm_box(true))
@@ -285,7 +285,7 @@ protected function move_message($direction, $cannedmessage_id)
285285

286286
if (!$cannedmessage)
287287
{
288-
trigger_error($this->language->lang('CANNEDMESSAGE_INVALID_ITEM') . '<br /><br />' . $this->language->lang('RETURN_PAGE', '<a href="' . $this->get_main_u_action(0) . '">', '</a>'));
288+
trigger_error($this->language->lang('CANNEDMESSAGE_INVALID_ITEM') . '<br><br>' . $this->language->lang('RETURN_PAGE', '<a href="' . $this->get_main_u_action(0) . '">', '</a>'));
289289
}
290290

291291
$result = $this->manager->move_message($cannedmessage_id, $direction);
@@ -355,7 +355,7 @@ protected function page_setup($cannedmessage_data)
355355
$has_errors = (bool) count($this->errors);
356356
$this->template->assign_vars(array(
357357
'S_ERROR' => $has_errors,
358-
'ERROR_MSG' => $has_errors ? implode('<br />', $this->errors) : '',
358+
'ERROR_MSG' => $has_errors ? implode('<br>', $this->errors) : '',
359359

360360
'S_CANNEDMESSAGE_ADD_OR_EDIT' => true,
361361
'U_ACTION' => $u_action,
@@ -413,6 +413,6 @@ protected function success($message, $log_type, $cannedmessage)
413413

414414
$redirect = $this->get_main_u_action($cannedmessage['parent_id']);
415415
meta_refresh(3, $redirect);
416-
trigger_error($this->language->lang($message) . '<br /><br />' . $this->language->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'));
416+
trigger_error($this->language->lang($message) . '<br><br>' . $this->language->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'));
417417
}
418418
}

language/en/info_acp_cannedmessages.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
}
2020

2121
$lang = array_merge($lang, array(
22-
'MCP_CANNEDMESSAGE_ADD_LOG' => '<strong>Canned Message added</strong><br />» %s',
23-
'MCP_CANNEDMESSAGE_EDIT_LOG' => '<strong>Canned Message edited</strong><br />» %s',
24-
'MCP_CANNEDMESSAGE_DELETE_LOG' => '<strong>Canned Message deleted</strong><br />» %s',
22+
'MCP_CANNEDMESSAGE_ADD_LOG' => '<strong>Canned Message added</strong><br>» %s',
23+
'MCP_CANNEDMESSAGE_EDIT_LOG' => '<strong>Canned Message edited</strong><br>» %s',
24+
'MCP_CANNEDMESSAGE_DELETE_LOG' => '<strong>Canned Message deleted</strong><br>» %s',
2525
'MCP_CANNEDMESSAGE_MOVE_UP_LOG' => '<strong>Moved canned message</strong> %1$s <strong>above</strong> %2$s',
2626
'MCP_CANNEDMESSAGE_MOVE_DOWN_LOG' => '<strong>Moved canned message</strong> %1$s <strong>below</strong> %2$s',
2727
));

styles/prosilver/template/mcp_cannedmessages_manage.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h3>{{ lang('ERROR') }}</h3>
2222
<fieldset>
2323
<dl>
2424
<dt><label for="cannedmessage_name">{{ lang('CANNEDMESSAGE_NAME') ~ lang('COLON') }}</label></dt>
25-
<dd><input name="cannedmessage_name" id="cannedmessage_name" type="text" class="inputbox" maxlength="255" value="{{ CANNESMESSAGE_NAME }}" /></dd>
25+
<dd><input name="cannedmessage_name" id="cannedmessage_name" type="text" class="inputbox" maxlength="255" value="{{ CANNESMESSAGE_NAME }}"></dd>
2626
</dl>
2727

2828
<dl>
@@ -67,13 +67,13 @@ <h3>{{ lang('ERROR') }}</h3>
6767
{% endif %}
6868
</fieldset>
6969

70-
<hr />
70+
<hr>
7171

7272
<fieldset class="submit-buttons">
73-
<input type="submit" name="preview" id="preview" value="{{ lang('PREVIEW') }}" class="button1 button button-form"{% if IS_CAT %} style="display: none;"{% endif %} />
74-
<input type="submit" name="submit" id="submit" value="{{ lang('SUBMIT') }}" class="button1 button button-form" />
75-
<input type="submit" name="cancel" id="cancel" value="{{ lang('CANCEL') }}" class="button1 button button-form" />
76-
<input type="hidden" name="action_cancel" id="action_cancel" value="{{ U_ACTION_CANCEL }}" />
73+
<input type="submit" name="preview" id="preview" value="{{ lang('PREVIEW') }}" class="button1 button button-form"{% if IS_CAT %} style="display: none;"{% endif %}>
74+
<input type="submit" name="submit" id="submit" value="{{ lang('SUBMIT') }}" class="button1 button button-form">
75+
<input type="submit" name="cancel" id="cancel" value="{{ lang('CANCEL') }}" class="button1 button button-form">
76+
<input type="hidden" name="action_cancel" id="action_cancel" value="{{ U_ACTION_CANCEL }}">
7777
{{ S_FORM_TOKEN }}
7878
</fieldset>
7979
</form>
@@ -135,10 +135,9 @@ <h3>{{ lang('ERROR') }}</h3>
135135

136136
<form id="cannedmessages" method="post" action="{{ U_ACTION_ADD }}">
137137
<fieldset class="quick">
138-
<input type="hidden" name="action" value="add" />
139-
140-
<input type="text" id="cannedmessage_name" name="cannedmessage_name" class="inputbox autowidth" value="" maxlength="255" />
141-
<input class="button1 button button-form" id="addmessage" name="addmessage" type="submit" value="{{ lang('CREATE_CANNEDMESSAGE') }}" />
138+
<input type="hidden" name="action" value="add">
139+
<input type="text" id="cannedmessage_name" name="cannedmessage_name" class="inputbox autowidth" value="" maxlength="255">
140+
<input class="button1 button button-form" id="addmessage" name="addmessage" type="submit" value="{{ lang('CREATE_CANNEDMESSAGE') }}">
142141
{{ S_FORM_TOKEN }}
143142
</fieldset>
144143
</form>

0 commit comments

Comments
 (0)