diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-07 14:13:01 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-07 14:13:01 -0500 |
commit | a0f4343ef58ba09d8b74fd44d4e2bc9011c382ea (patch) | |
tree | a1c385c91937f5ce61502fccd851ec85305c2ff4 /app/Model/ProjectDuplication.php | |
parent | 1a109f11a3059c35f16d5f9f1d6365ac652d71c9 (diff) | |
parent | ce13fced30fffa78c1a0e73368f39b6381643c1f (diff) |
Merge pull-request #592
Diffstat (limited to 'app/Model/ProjectDuplication.php')
-rw-r--r-- | app/Model/ProjectDuplication.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/ProjectDuplication.php b/app/Model/ProjectDuplication.php index 11a606d7..ef4558ba 100644 --- a/app/Model/ProjectDuplication.php +++ b/app/Model/ProjectDuplication.php @@ -23,8 +23,8 @@ class ProjectDuplication extends Base { $suffix = ' ('.t('Clone').')'; - if (strlen($name.$suffix) > 50) { - $name = substr($name, 0, 50 - strlen($suffix)); + if (strlen($name.$suffix) > $max_length) { + $name = substr($name, 0, $max_length - strlen($suffix)); } return $name.$suffix; |