show custom-notes correctly on admin/customer index when activated + tiny fixes, refs #1471
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -140,6 +140,8 @@ if ($page == 'overview') {
|
||||
$userinfo['traffic_used'] = round($userinfo['traffic_used'] / (1024 * 1024), $dec_places);
|
||||
$userinfo = str_replace_array('-1', $lng['customer']['unlimited'], $userinfo, 'customers domains diskspace traffic mysqls emails email_accounts email_forwarders email_quota ftps tickets subdomains');
|
||||
|
||||
$userinfo['custom_notes'] = ($userinfo['custom_notes'] != '') ? nl2br($userinfo['custom_notes']) : '';
|
||||
|
||||
$cron_last_runs = getCronjobsLastRun();
|
||||
$outstanding_tasks = getOutstandingTasks();
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ if ($page == 'overview') {
|
||||
$userinfo['traffic_used'] = round($userinfo['traffic_used'] / (1024 * 1024), Settings::Get('panel.decimal_places'));
|
||||
$userinfo = str_replace_array('-1', $lng['customer']['unlimited'], $userinfo, 'diskspace traffic mysqls emails email_accounts email_forwarders email_quota ftps tickets subdomains');
|
||||
|
||||
$userinfo['custom_notes'] = ($userinfo['custom_notes'] != '') ? nl2br($userinfo['custom_notes']) : '';
|
||||
|
||||
$services_enabled = "";
|
||||
$se = array();
|
||||
if ($userinfo['imap'] == '1') $se[] = "IMAP";
|
||||
|
||||
2
templates/Sparkle/admin/index/index.tpl
vendored
2
templates/Sparkle/admin/index/index.tpl
vendored
@@ -180,7 +180,7 @@ $header
|
||||
</if>
|
||||
|
||||
<if $userinfo['custom_notes'] != '' && $userinfo['custom_notes_show'] == '1'>
|
||||
<table class="dboarditem full" id="customnotes">
|
||||
<table class="dboarditem full">
|
||||
<tbody>
|
||||
<tr><td>{$userinfo['custom_notes']}</td></tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user