summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2016-02-27 13:44:27 +0100
committerAndreas Gohr <andi@splitbrain.org>2016-02-27 13:44:27 +0100
commita01ea5527d01d86ab0055337ddaf5b87f0b55a3a (patch)
treeef2b201ad22c2f957b8a2e6c35c387763cdbf00d /index.php
parent545ab9c06a69c714e895582e20d5e06b02a8f128 (diff)
downloadxdebug-trace-tree-master.zip
xdebug-trace-tree-master.tar.gz
xdebug-trace-tree-master.tar.bz2
keep filename in dropdownHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index c2dca4c..58173be 100644
--- a/index.php
+++ b/index.php
@@ -18,7 +18,8 @@
}
$files = glob("$dir/*.xt");
foreach ($files as $file) {
- echo '<option value="' . htmlspecialchars($file) . '">' . htmlspecialchars(basename($file)) . '</option>';
+ $checked = ($file == $_REQUEST['file']) ? 'selected="selected"' : '';
+ echo '<option value="' . htmlspecialchars($file) . '" '.$checked.'>' . htmlspecialchars(basename($file)) . '</option>';
}
?>
</select>