summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorColin Williams <github@crwilliams.co.uk>2015-01-31 15:04:32 +0000
committerColin Williams <github@crwilliams.co.uk>2015-02-07 18:15:31 +0000
commitc2ff3b2d696224800cb70513edb3ed0c84cc87a5 (patch)
tree6c7a9e941a37d1a29754ee6c643035c73fe9938c /app/Model
parentb24b1e7e4e5ee0551ee56aa0f21c4425b479db2e (diff)
Use $max_length parameter in getClonedProjectName.
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/ProjectDuplication.php4
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;