aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/WikiModel.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-23 17:44:40 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-23 17:44:40 +0000
commitfd6f1fdf614b6da3f3ed8b4f16ba7ee1252daee6 (patch)
treefdb7416e5572482cf68ea82fd6c38caae4b493fc /h-source/Application/Models/WikiModel.php
parentda8c1031b25094c82c27b2dbe19723642095a7b7 (diff)
improved i18n
Diffstat (limited to 'h-source/Application/Models/WikiModel.php')
-rw-r--r--h-source/Application/Models/WikiModel.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/h-source/Application/Models/WikiModel.php b/h-source/Application/Models/WikiModel.php
index 4021181..4c5e0d3 100644
--- a/h-source/Application/Models/WikiModel.php
+++ b/h-source/Application/Models/WikiModel.php
@@ -52,15 +52,17 @@ class WikiModel extends Model_Map {
$this->fieldsWithBreaks = array(gtext('wiki page'));
$this->strongConditions['insert'] = array(
- "checkLength|99" => 'title|'.gtext('title is too length'),
+ "checkNotEmpty" => 'title',
+ "checkLength|99" => 'title|'.gtext('title is too long'),
"+checkNotEmpty" => 'page',
- "+checkLength|9000" => 'page|'.gtext('the page text is too length'),
+ "+checkLength|9000" => 'page|'.gtext('the page text is too long'),
);
$this->strongConditions['update'] = array(
- "checkLength|99" => 'title|'.gtext('title is too length'),
+ "checkNotEmpty" => 'title',
+ "checkLength|99" => 'title|'.gtext('title is too long'),
"+checkNotEmpty" => 'page',
- "+checkLength|9000" => 'page|'.gtext('the page text is too length'),
+ "+checkLength|9000" => 'page|'.gtext('the page text is too long'),
);
$this->databaseConditions['insert'] = array(