This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 68c7579c53c8281ba69c2cdbe0e68542f781b570 (commit)
from 69f9b59d631a8700365c552e992f2ea25bd188ba (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=68c7579c53c8281ba69c2cdbe0e68542f781b570
commit 68c7579c53c8281ba69c2cdbe0e68542f781b570
Author: Marc-Etienne Vargenau <[email protected]>
Date: Fri Mar 17 11:31:35 2017 +0100
Make error message consistant with test
diff --git a/src/common/docman/Document.class.php
b/src/common/docman/Document.class.php
index a18937d..4231671 100644
--- a/src/common/docman/Document.class.php
+++ b/src/common/docman/Document.class.php
@@ -148,7 +148,7 @@ class Document extends FFObject {
*/
function create($filename, $filetype, $data, $doc_group, $title,
$description, $stateid = 0, $vcomment = '', $importData = array()) {
if (strlen($title) < DOCMAN__TITLE_MIN_SIZE) {
- $this->setError(_('Title Must Be At Least 5
Characters'));
+ $this->setError(sprintf(_('Title Must Be At Least %d
Characters'), DOCMAN__TITLE_MIN_SIZE));
return false;
}
if (strlen($description) < DOCMAN__DESCRIPTION_MIN_SIZE) {
diff --git a/src/common/pm/ProjectGroup.class.php
b/src/common/pm/ProjectGroup.class.php
index 8a48119..d40bdc6 100644
--- a/src/common/pm/ProjectGroup.class.php
+++ b/src/common/pm/ProjectGroup.class.php
@@ -139,7 +139,7 @@ class ProjectGroup extends FFError {
*/
function create($project_name,$description,$send_all_posts_to='') {
if (strlen($project_name) < 3) {
- $this->setError(_('Title Must Be At Least 5
Characters'));
+ $this->setError(sprintf(_('Title Must Be At Least %d
Characters'), 3));
return false;
}
if (strlen($description) < 10) {
@@ -332,7 +332,7 @@ class ProjectGroup extends FFError {
*/
function update($project_name, $description, $send_all_posts_to = '') {
if (strlen($project_name) < 3) {
- $this->setError(_('Title Must Be At Least 5
Characters'));
+ $this->setError(sprintf(_('Title Must Be At Least %d
Characters'), 3));
return false;
}
if (strlen($description) < 10) {
-----------------------------------------------------------------------
Summary of changes:
src/common/docman/Document.class.php | 2 +-
src/common/pm/ProjectGroup.class.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits