Change-Id: I9f1ddad705d1697dd81f74eb735dc386bab9d200
protected function getConditions( $table ) {
$prefix = $this->getPrefix( $table );
- // @todo FIXME: imagelinks and categorylinks do not rely on getNamespace,
- // they could be moved up for nicer case statements
switch ( $table ) {
case 'pagelinks':
case 'templatelinks':
);
break;
case 'imagelinks':
- $conds = array(
- 'il_to' => $this->title->getDBkey(),
- "page_id={$prefix}_from"
- );
- break;
case 'categorylinks':
$conds = array(
- 'cl_to' => $this->title->getDBkey(),
+ "{$prefix}_to" => $this->title->getDBkey(),
"page_id={$prefix}_from"
);
break;