cvs: pear /HTML_QuickForm/docs rules-builtin.php
| From: | Alexey Borzov | Date: | Fri, 26 Nov 2004 10:24:54 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/docs rules-builtin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-26516@lists.php.net to get a copy of this message | ||
avb Fri Nov 26 05:24:54 2004 EDT
Modified files:
/pear/HTML_QuickForm/docs rules-builtin.php
Log:
Fixed typo (bug #2806)
http://cvs.php.net/diff.php/pear/HTML_QuickForm/docs/rules-builtin.php?r1=1.3&r2=1.4&ty=u
Index: pear/HTML_QuickForm/docs/rules-builtin.php
diff -u pear/HTML_QuickForm/docs/rules-builtin.php:1.3
pear/HTML_QuickForm/docs/rules-builtin.php:1.4
--- pear/HTML_QuickForm/docs/rules-builtin.php:1.3 Tue Mar 2 16:14:41 2004
+++ pear/HTML_QuickForm/docs/rules-builtin.php Fri Nov 26 05:24:54 2004
@@ -4,7 +4,7 @@
*
* @author Alexey Borzov <avb@php.net>
*
- * $Id: rules-builtin.php,v 1.3 2004/03/02 21:14:41 avb Exp $
+ * $Id: rules-builtin.php,v 1.4 2004/11/26 10:24:54 avb Exp $
*/
require_once 'HTML/QuickForm.php';
@@ -68,7 +68,7 @@
// File rules
$form->addElement('header', null, 'Uploaded file rules');
-$form->addElement('file', 'tstUpload', array('Upload file:',
'Rule types: \'uploadedfile\', \'maxfilesize\' with $format = 10240,
\'mimetype\' with $format = \'text/xml\', filename with $format =
\'/\\.xml$/\'<br />Validation for files is obviuosly <b>server-side
only</b>'));
+$form->addElement('file', 'tstUpload', array('Upload file:',
'Rule types: \'uploadedfile\', \'maxfilesize\' with $format = 10240,
\'mimetype\' with $format = \'text/xml\', filename with $format =
\'/\\.xml$/\'<br />Validation for files is obviously <b>server-side
only</b>'));
$form->addRule('tstUpload', 'Upload is required', 'uploadedfile');
$form->addRule('tstUpload', 'File size should be less than 10kb',
'maxfilesize', 10240);
$form->addRule('tstUpload', 'File type should be text/xml',
'mimetype', 'text/xml');