The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit ae218a7b authored by Demian Katz's avatar Demian Katz
Browse files

Maximum tag length is now configurable (resolves VUFIND-805).

parent 7e6251af
No related merge requests found
......@@ -853,4 +853,10 @@ treeSearchLimit = 100
;email_subject = "VuFind Feedback"
; This is the information for where feedback emails are sent from.
;sender_email = "noreply@vufind.org"
;sender_name = "VuFind Feedback"
\ No newline at end of file
;sender_name = "VuFind Feedback"
; This section allows configuration of VuFind's social features
[Social]
; This controls the maximum length of a single tag; it should correspond with the
; field size in the tags database table.
max_tag_length = 64
\ No newline at end of file
......@@ -278,7 +278,10 @@ $config = array(
);
},
'VuFind\Tags' => function ($sm) {
return new \VuFind\Tags();
$config = $sm->get('VuFind\Config')->get('config');
$maxLength = isset($config->Social->max_tag_length)
? $config->Social->max_tag_length : 64;
return new \VuFind\Tags($maxLength);
},
'VuFind\Translator' => function ($sm) {
$factory = new \Zend\I18n\Translator\TranslatorServiceFactory();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment