diff options
author | Andrew Dolgov <[email protected]> | 2011-12-14 15:51:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-14 15:51:27 +0400 |
commit | 66be620a87aa93a1f9cc3e956942026ce31f2207 (patch) | |
tree | 888cb605c352f69b332fc63e1d5235975b6b836a /classes | |
parent | 07391e36b8d8c4cfadcebe47046829457178cbba (diff) |
do not include keyboard help files into index and prefs.php
Diffstat (limited to 'classes')
-rw-r--r-- | classes/backend.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/backend.php b/classes/backend.php index f7e7b84b8..334701f4a 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -12,16 +12,16 @@ class Backend extends Handler { } function help() { - $tid = (int) $_REQUEST["tid"]; + $topic = basename($_REQUEST["topic"]); - if (file_exists("help/$tid.php")) { - include("help/$tid.php"); + if (file_exists("help/$topic.php")) { + include("help/$topic.php"); } else { print "<p>".__("Help topic not found.")."</p>"; } - print "<div align='center'> + /* print "<div align='center'> <button onclick=\"javascript:window.close()\">". - __('Close this window')."</button></div>"; + __('Close this window')."</button></div>"; */ } } |