From d6e7cee60779d85d05264ba360463ab9eabc7d35 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 27 Apr 2017 17:58:41 -0300 Subject: Fix icons in sidebar on personal page Signed-off-by: Morris Jobke --- settings/css/settings.css | 3 +++ settings/personal.php | 9 +++++++-- settings/templates/certificates.php | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'settings') diff --git a/settings/css/settings.css b/settings/css/settings.css index 0a1d4e046fe..65709c9578a 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -26,6 +26,9 @@ input#openid, input#webdav { width:20em; } .nav-icon-second-factor-backup-codes { background-image: url('../img/password.svg?v=1'); } +.nav-icon-ssl-root-certificate { + background-image: url('../img/password.svg?v=1'); +} #avatarform { min-width: 145px; diff --git a/settings/personal.php b/settings/personal.php index 2c46a9f8dd2..6cbcc330cd9 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -220,8 +220,13 @@ $formsMap = array_map(function($form){ if (preg_match('%([^>]*)>.*?)%i', $form, $regs)) { $sectionName = str_replace('', '', $regs[0]); $sectionName = str_replace('', '', $sectionName); - $anchor = strtolower($sectionName); - $anchor = str_replace(' ', '-', $anchor); + if (strpos($regs['class'], 'data-anchor-name') !== false) { + preg_match('%.*data-anchor-name="(?P[^"]*)"%i', $regs['class'], $matches); + $anchor = $matches['anchor']; + } else { + $anchor = strtolower($sectionName); + $anchor = str_replace(' ', '-', $anchor); + } return array( 'anchor' => $anchor, diff --git a/settings/templates/certificates.php b/settings/templates/certificates.php index 16f8dda31ad..ac0a2293800 100644 --- a/settings/templates/certificates.php +++ b/settings/templates/certificates.php @@ -1,5 +1,5 @@
-

t('SSL Root Certificates')); ?>

+

t('SSL Root Certificates')); ?>

-- cgit v1.2.3