fixes #343, value column in config table is converted to text now
This commit is contained in:
parent
47ce68a47e
commit
a2102eadd1
|
@ -109,11 +109,11 @@ class QvitterAdminSettingsAction extends AdminPanelAction
|
||||||
{
|
{
|
||||||
// Validate notice text
|
// Validate notice text
|
||||||
|
|
||||||
//The column 'value' in table 'config' is varchar(191)
|
//The column 'value' in table 'config' is TEXT
|
||||||
if (mb_strlen($qvitterNotice) > 191) {
|
if (mb_strlen($qvitterNotice) > 21844) {
|
||||||
$this->clientError(
|
$this->clientError(
|
||||||
// TRANS: Client error displayed when a sidebar notice was longer than allowed.
|
// 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'),
|
_('Qvitter sidebar notice text'),
|
||||||
common_config('site', 'qvitternotice'),
|
common_config('site', 'qvitternotice'),
|
||||||
// TRANS: Tooltip for sidebar notice text field in admin panel.
|
// 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');
|
$this->out->elementEnd('li');
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ class QvitterNoticeAdminPanelForm extends AdminForm
|
||||||
_('Qvitter sidebar notice text (logged out)'),
|
_('Qvitter sidebar notice text (logged out)'),
|
||||||
common_config('site', 'qvitternoticeloggedout'),
|
common_config('site', 'qvitternoticeloggedout'),
|
||||||
// TRANS: Tooltip for sidebar notice text field in admin panel.
|
// 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');
|
$this->out->elementEnd('li');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user