Changeset 249


Ignore:
Timestamp:
10/22/09 11:32:52 (10 years ago)
Author:
sander
Message:

Use correct mimetype string in error

Location:
trunk/server/www/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/behaviors/file.php

    r195 r249  
    228228                $mimestring = ''; 
    229229                if (!$mimetype = $this->_getMimetype($model, $destination_path, $mimestring)) { 
    230                         $this->errors[] = sprintf(__('Invalid mimetype %s detected for file buffer', true), $mimetype); 
     230                        $this->errors[] = sprintf(__('Invalid mimetype %s detected for file buffer', true), $mimestring); 
    231231                        unlink($destination_path); 
    232232                        return false; 
  • trunk/server/www/app/views/requests/add.ctp

    r235 r249  
    9292                                echo $form->button(__('Upload', true), array('type' => 'submit', 'id' => 'RequestFileSubmit')); 
    9393                        } else { 
    94                                 echo '<p>' . __('Officeshots is in closed beta. You need to <a href="/users/login">login</a> or <a href="/users/register">register</a> before you can upload documents.', true) . '</p>'; 
     94                                echo '<p>' . __('Officeshots is in open beta. You need to <a href="/users/login">login</a> or <a href="/users/register">register</a> before you can upload documents.', true) . '</p>'; 
    9595                                echo $form->file('Request.FileUpload', array('disabled' => true)); 
    9696                                echo $form->button(__('Upload', true), array('type' => 'submit', 'disabled' => true, 'id' => 'RequestFileSubmit')); 
Note: See TracChangeset for help on using the changeset viewer.