diff --git a/common.php b/common.php index 0d81feb..36f9053 100644 --- a/common.php +++ b/common.php @@ -2211,6 +2211,7 @@ function render_list($path = '', $files = '') while (strpos($html, '')) $html = str_replace('', getconstStr('GetFileNameFail'), $html); while (strpos($html, '')) $html = str_replace('', getconstStr('UploadFile'), $html); while (strpos($html, '')) $html = str_replace('', getconstStr('UploadFolder'), $html); + while (strpos($html, '')) $html = str_replace('', getconstStr('FileSelected'), $html); while (strpos($html, '')) $html = str_replace('', (isset($_GET['preview'])?'?preview&':'?'), $html); $tmp = splitfirst($html, ''); @@ -2296,7 +2297,10 @@ function render_list($path = '', $files = '') $tmp[1] = $tmp1; } $html .= $MultiDiskArea . $tmp[1]; - while (strpos($html, '')) $html = str_replace('', $_SERVER['disktag'], $html); + $diskname = getConfig('diskname'); + if ($diskname=='') $diskname = $_SERVER['disktag']; + if (strlen($diskname)>10) $diskname = substr($diskname, 0, 7).'...'; + while (strpos($html, '')) $html = str_replace('', $diskname, $html); $tmp = splitfirst($html, ''); $html = $tmp[0];