Diff of /plugins/file-upload.php [40ad84] .. [6591d4] Maximize Restore

  Switch to unified view

a/plugins/file-upload.php b/plugins/file-upload.php
...
...
15
    * @param string prefix for displaying data, null stands for $uploadPath
15
    * @param string prefix for displaying data, null stands for $uploadPath
16
    * @param string regular expression with allowed file extensions
16
    * @param string regular expression with allowed file extensions
17
    */
17
    */
18
    function AdminerFileUpload($uploadPath = "../static/data/", $displayPath = null, $extensions = "[a-zA-Z0-9]+") {
18
    function AdminerFileUpload($uploadPath = "../static/data/", $displayPath = null, $extensions = "[a-zA-Z0-9]+") {
19
        $this->uploadPath = $uploadPath;
19
        $this->uploadPath = $uploadPath;
20
        $this->displayPath = (isset($displayPath) ? $displayPath : $uploadPath);
20
        $this->displayPath = ($displayPath !== null ? $displayPath : $uploadPath);
21
        $this->extensions = $extensions;
21
        $this->extensions = $extensions;
22
    }
22
    }
23
    
23
    
24
    function editInput($table, $field, $attrs, $value) {
24
    function editInput($table, $field, $attrs, $value) {
25
        if (ereg('(.*)_path$', $field["field"])) {
25
        if (ereg('(.*)_path$', $field["field"])) {