From: Rob Church Date: Wed, 18 Jul 2007 21:47:09 +0000 (+0000) Subject: (bug 10634) Fake out log_id until the column is live on Wikimedia X-Git-Tag: 1.31.0-rc.0~52021 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=7e655f1116f813507295477a472b3b4e050ac2bd;p=lhc%2Fweb%2Fwiklou.git (bug 10634) Fake out log_id until the column is live on Wikimedia --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 21ba725c6d..87eaeb2249 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -65,7 +65,8 @@ class ApiQueryLogEvents extends ApiQueryBase { 'log_timestamp', )); - $this->addFieldsIf('log_id', $this->fld_ids); + // FIXME: Fake out log_id for now until the column is live on Wikimedia + // $this->addFieldsIf('log_id', $this->fld_ids); $this->addFieldsIf('page_id', $this->fld_ids); $this->addFieldsIf('log_user', $this->fld_user); $this->addFieldsIf('user_name', $this->fld_user); @@ -125,7 +126,9 @@ class ApiQueryLogEvents extends ApiQueryBase { $vals = array(); if ($this->fld_ids) { - $vals['logid'] = intval($row->log_id); + // FIXME: Fake out log_id for now until the column is live on Wikimedia + // $vals['logid'] = intval($row->log_id); + $vals['logid'] = 0; $vals['pageid'] = intval($row->page_id); }