aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/WikiModel.php
diff options
context:
space:
mode:
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(