diff options
author | Andreas Gohr <andi@splitbrain.org> | 2016-02-27 13:44:27 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2016-02-27 13:44:27 +0100 |
commit | a01ea5527d01d86ab0055337ddaf5b87f0b55a3a (patch) | |
tree | ef2b201ad22c2f957b8a2e6c35c387763cdbf00d /index.php | |
parent | 545ab9c06a69c714e895582e20d5e06b02a8f128 (diff) | |
download | xdebug-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.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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> |