Пример #1
0
 public function init()
 {
     global $IP, $wgForceMasterDatabase;
     // Set this flag to ensure that all select operations go against master
     // Slave lag can cause random errors during wiki creation process
     $wgForceMasterDatabase = true;
     parent::init();
     $this->title = \Title::newFromText(NS_MAIN, "Main");
     require_once "{$IP}/extensions/CheckUser/install.inc";
 }
 public function init()
 {
     parent::init();
     if (!defined('MSG_STATUS_DB')) {
         define('MSG_STATUS_DB', 'messages_status');
     }
     if (!defined('MSG_STATUS_UNSEEN')) {
         define('MSG_STATUS_UNSEEN', '0');
     }
 }