Initialize localization constant during install

This commit is contained in:
Fedor A. Fetisov 2018-09-27 19:33:36 +03:00
parent eb5dd776fa
commit 8b0e748ca8

View File

@ -123,6 +123,9 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
*/ */
public static function install() public static function install()
{ {
// Initialize localization constant
getlocal('All our operators are currently busy, please hold. Sorry for keeping you waiting.');
return Database::getInstance()->query( return Database::getInstance()->query(
'CREATE TABLE {mibew_autoreply} ( ' 'CREATE TABLE {mibew_autoreply} ( '
. 'threadid INT NOT NULL PRIMARY KEY' . 'threadid INT NOT NULL PRIMARY KEY'