Ejemplo n.º 1
0
 public function startWrite($code)
 {
     if ($this->readOnly) {
         return;
     } elseif (!$code) {
         throw new MWException(__METHOD__ . ": Invalid language \"{$code}\"");
     }
     $this->dbw = wfGetDB(DB_MASTER);
     $this->readOnly = $this->dbw->isReadOnly();
     $this->currentLang = $code;
     $this->batch = [];
 }