enable javascript in mod panel
This commit is contained in:
parent
38bf3276e4
commit
77176faece
|
@ -880,7 +880,7 @@ function displayBan($ban) {
|
||||||
Element('page.html', array(
|
Element('page.html', array(
|
||||||
'title' => _('Banned!'),
|
'title' => _('Banned!'),
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'nojavascript' => true,
|
'boardlist' => createBoardlist($mod),
|
||||||
'body' => Element('banned.html', array(
|
'body' => Element('banned.html', array(
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'ban' => $ban,
|
'ban' => $ban,
|
||||||
|
|
|
@ -15,7 +15,7 @@ function mod_page($title, $template, $args, $subtitle = false) {
|
||||||
'hide_dashboard_link' => $template == 'mod/dashboard.html',
|
'hide_dashboard_link' => $template == 'mod/dashboard.html',
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'subtitle' => $subtitle,
|
'subtitle' => $subtitle,
|
||||||
'nojavascript' => true,
|
'boardlist' => createBoardlist($mod),
|
||||||
'body' => Element($template,
|
'body' => Element($template,
|
||||||
array_merge(
|
array_merge(
|
||||||
array('config' => $config, 'mod' => $mod),
|
array('config' => $config, 'mod' => $mod),
|
||||||
|
@ -846,7 +846,7 @@ function mod_page_ip($ip) {
|
||||||
|
|
||||||
$args['security_token'] = make_secure_link_token('IP/' . $ip);
|
$args['security_token'] = make_secure_link_token('IP/' . $ip);
|
||||||
|
|
||||||
mod_page(sprintf('%s: %s', _('IP'), $ip), 'mod/view_ip.html', $args, $args['hostname']);
|
mod_page(sprintf('%s: %s', _('IP'), htmlspecialchars($ip)), 'mod/view_ip.html', $args, $args['hostname']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mod_ban() {
|
function mod_ban() {
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
{{ boardlist.top }}
|
||||||
|
|
||||||
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr>{% endif %}
|
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr>{% endif %}
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
Loading…
Reference in New Issue