? .mmb.module.swp ? port_6_1.patch Index: mmb.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/mmb/mmb.info,v retrieving revision 1.1.2.3 diff -u -p -r1.1.2.3 mmb.info --- mmb.info 18 Jun 2007 23:06:52 -0000 1.1.2.3 +++ mmb.info 29 Dec 2008 21:52:12 -0000 @@ -1,5 +1,6 @@ ; $Id $ name = "Mobile Media Blog" description = "Allows you to post media via e-mail or mobile phone (sms2mail)." -dependencies = mailhandler upload -;package = "" +dependencies[] = mailhandler +dependencies[] = upload +core = 6.x Index: mmb.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/mmb/mmb.module,v retrieving revision 1.5.2.9 diff -u -p -r1.5.2.9 mmb.module --- mmb.module 17 Aug 2007 06:14:50 -0000 1.5.2.9 +++ mmb.module 29 Dec 2008 21:52:12 -0000 @@ -162,22 +162,22 @@ function _mmb_validate(&$node) { $valid = TRUE; if ($error['extension'] == $user_roles) { // form_set_error('upload', t('The selected file %name can not be attached to this post, because it is only possible to attach files with the following extensions: %files-allowed.', array('%name' => $file->filename, '%files-allowed' => $extensions))); - watchdog('mmb', t('The selected file %name can not be attached to this post, because it is only possible to attach files with the following extensions: %files-allowed.', array('%name' => $file->filename, '%files-allowed' => $extensions))); + watchdog('mmb', 'The selected file %name can not be attached to this post, because it is only possible to attach files with the following extensions: %files-allowed.', array('%name' => $file->filename, '%files-allowed' => $extensions)); $valid = FALSE; } elseif ($error['uploadsize'] == $user_roles) { // form_set_error('upload', t('The selected file %name can not be attached to this post, because it exceeded the maximum filesize of %maxsize.', array('%name' => $file->filename, '%maxsize' => format_size($uploadsize)))); - watchdog('mmb', t('The selected file %name can not be attached to this post, because it exceeded the maximum filesize of %maxsize.', array('%name' => $file->filename, '%maxsize' => format_size($uploadsize)))); + watchdog('mmb', 'The selected file %name can not be attached to this post, because it exceeded the maximum filesize of %maxsize.', array('%name' => $file->filename, '%maxsize' => format_size($uploadsize))); $valid = FALSE; } elseif ($error['usersize'] == $user_roles) { // form_set_error('upload', t('The selected file %name can not be attached to this post, because the disk quota of %quota has been reached.', array('%name' => $file->filename, '%quota' => format_size($usersize)))); - watchdog('mmb', t('The selected file %name can not be attached to this post, because the disk quota of %quota has been reached.', array('%name' => $file->filename, '%quota' => format_size($usersize)))); + watchdog('mmb', 'The selected file %name can not be attached to this post, because the disk quota of %quota has been reached.', array('%name' => $file->filename, '%quota' => format_size($usersize))); $valid = FALSE; } elseif (strlen($file->filename) > 255) { // form_set_error('upload', t('The selected file %name can not be attached to this post, because the filename is too long.', array('%name' => $file->filename))); - watchdog('mmb', t('The selected file %name can not be attached to this post, because the filename is too long.', array('%name' => $file->filename))); + watchdog('mmb', 'The selected file %name can not be attached to this post, because the filename is too long.', array('%name' => $file->filename)); $valid = FALSE; }