fixes #343, value column in config table is converted to text now

This commit is contained in:
Hannes Mannerheim 2016-01-09 00:50:30 +01:00
parent 47ce68a47e
commit a2102eadd1

View File

@ -109,11 +109,11 @@ class QvitterAdminSettingsAction extends AdminPanelAction
{
// Validate notice text
//The column 'value' in table 'config' is varchar(191)
if (mb_strlen($qvitterNotice) > 191) {
//The column 'value' in table 'config' is TEXT
if (mb_strlen($qvitterNotice) > 21844) {
$this->clientError(
// TRANS: Client error displayed when a sidebar notice was longer than allowed.
_('Maximum length for the sidebar notice is 191 characters.')
_('Maximum length for the sidebar notice is 21844 characters.')
);
}
@ -180,7 +180,7 @@ class QvitterNoticeAdminPanelForm extends AdminForm
_('Qvitter sidebar notice text'),
common_config('site', 'qvitternotice'),
// TRANS: Tooltip for sidebar notice text field in admin panel.
_('Qvitter\'s sidebar notice text (191 characters maximum; HTML allowed)')
_('Qvitter\'s sidebar notice text (21,844 characters maximum; HTML allowed)')
);
$this->out->elementEnd('li');
@ -195,7 +195,7 @@ class QvitterNoticeAdminPanelForm extends AdminForm
_('Qvitter sidebar notice text (logged out)'),
common_config('site', 'qvitternoticeloggedout'),
// TRANS: Tooltip for sidebar notice text field in admin panel.
_('Qvitter\'s sidebar notice text, when logged out (191 characters maximum; HTML allowed)')
_('Qvitter\'s sidebar notice text, when logged out (21,844 characters maximum; HTML allowed)')
);
$this->out->elementEnd('li');