summaryrefslogtreecommitdiff
path: root/classes/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-28 09:37:52 +0400
committerAndrew Dolgov <[email protected]>2013-02-28 09:37:52 +0400
commit271edfa6f9ac8ad387f98693a6c09496ddf72f1f (patch)
treebe105dbcf4c8316c24931de5263b4d7c48d21a0a /classes/backend.php
parent81d5b6e9ef3c7912e157d9338ae7b07133b57539 (diff)
parent350e3944d49ad26802e27e64057212d88c4d0bf9 (diff)
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
Diffstat (limited to 'classes/backend.php')
-rw-r--r--classes/backend.php35
1 files changed, 16 insertions, 19 deletions
diff --git a/classes/backend.php b/classes/backend.php
index 0b6e6bd30..d9a7a9fec 100644
--- a/classes/backend.php
+++ b/classes/backend.php
@@ -23,16 +23,10 @@ class Backend extends Handler {
$imap = get_hotkeys_map($this->link);
$omap = array();
- // :(
- $tinycharmap = array(
- "(9)" => "{TAB}",
- "(191)" => "?");
-
foreach ($imap[1] as $sequence => $action) {
- if (!isset($omap[$action])) {
- $omap[$action] = isset($tinycharmap[$sequence]) ? $tinycharmap[$sequence] :
- $sequence;
- }
+ if (!isset($omap[$action])) $omap[$action] = array();
+
+ array_push($omap[$action], $sequence);
}
print "<ul class='helpKbList' id='helpKbList'>";
@@ -44,18 +38,21 @@ class Backend extends Handler {
print "<li><h3>" . $section . "</h3></li>";
foreach ($hotkeys as $action => $description) {
- if (strpos($omap[$action], "|") !== FALSE) {
- $omap[$action] = substr($omap[$action],
- strpos($omap[$action], "|")+1,
- strlen($omap[$action]));
- }
- print "<li>";
- print "<span class='hksequence'>" . $omap[$action] . "</span>";
- print $description;
- print "</li>";
- }
+ foreach ($omap[$action] as $sequence) {
+ if (strpos($sequence, "|") !== FALSE) {
+ $sequence = substr($sequence,
+ strpos($sequence, "|")+1,
+ strlen($sequence));
+ }
+
+ print "<li>";
+ print "<span class='hksequence'>$sequence</span>";
+ print $description;
+ print "</li>";
+ }
+ }
}
print "</ul>";