Indefero

Indefero Commit Details


Date:2011-11-02 19:01:45 (13 years 6 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:3eca572866e27608284ed1550eedf50f8d62af9a
Parents: c39f5c2174709cbf683a378146ce517943b20d08
Message:Spelling fix.

Changes:

File differences

src/IDF/Form/Upload.php
106106
107107
108108
109
109
110110
111111
112112
......
116116
117117
118118
119
119
120120
121121
122122
......
129129
130130
131131
132
132
133133
134134
135135
            $this->cleaned_data['label'.$i] = trim($this->cleaned_data['label'.$i]);
            if (strpos($this->cleaned_data['label'.$i], ':') !== false) {
                list($class, $name) = explode(':', $this->cleaned_data['label'.$i], 2);
                list($class, $name) = array(mb_strtolower(trim($class)),
                list($class, $name) = array(mb_strtolower(trim($class)),
                                            trim($name));
            } else {
                $class = 'other';
            else $count[$class] += 1;
            if (in_array($class, $onemax) and $count[$class] > 1) {
                if (!isset($this->errors['label'.$i])) $this->errors['label'.$i] = array();
                $this->errors['label'.$i][] = sprintf(__('You cannot provide more than label from the %s class to an issue.'), $class);
                $this->errors['label'.$i][] = sprintf(__('You cannot provide more than label from the %s class to a download.'), $class);
                throw new Pluf_Form_Invalid(__('You provided an invalid label.'));
            }
        }
     */
    function failed()
    {
        if (!empty($this->cleaned_data['file'])
        if (!empty($this->cleaned_data['file'])
            and file_exists(Pluf::f('upload_path').'/'.$this->project->shortname.'/files/'.$this->cleaned_data['file'])) {
            @unlink(Pluf::f('upload_path').'/'.$this->project->shortname.'/files/'.$this->cleaned_data['file']);
        }

Archive Download the corresponding diff file

Page rendered in 0.30043s using 13 queries.