From 66be620a87aa93a1f9cc3e956942026ce31f2207 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 14 Dec 2011 15:51:27 +0400 Subject: do not include keyboard help files into index and prefs.php --- classes/backend.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'classes/backend.php') 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 "

".__("Help topic not found.")."

"; } - print "
+ /* print "
"; + __('Close this window')."
"; */ } } -- cgit v1.2.3