Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -1501,11 +1501,12 @@ |
1502 | 1502 | $n = $row->count; |
1503 | 1503 | $dbr->freeResult( $res ); |
1504 | 1504 | } |
| 1505 | + |
1505 | 1506 | // find the proofreading status of transclusions |
1506 | 1507 | $queryArr = array( |
1507 | 1508 | 'tables' => array( 'templatelinks', 'page', 'categorylinks' ), |
1508 | 1509 | 'fields' => array( 'COUNT(page_id) AS count' ), |
1509 | | - 'conds' => array( 'cl_to' => '', 'page_namespace' => $page_ns_index, 'page_title' => $pages ), |
| 1510 | + 'conds' => array( 'tl_from' => $id, 'tl_namespace' => $page_ns_index, 'cl_to' => '' ), |
1510 | 1511 | 'joins' => array( |
1511 | 1512 | 'page' => array( 'LEFT JOIN', 'page_title=tl_title AND page_namespace=tl_namespace' ), |
1512 | 1513 | 'categorylinks' => array( 'LEFT JOIN', 'cl_from=page_id' ), |