From: Brion Vibber Date: Thu, 2 Dec 2004 03:04:56 +0000 (+0000) Subject: (bug 973) quickie brake for images with many many uses X-Git-Tag: 1.5.0alpha1~1172 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=58f59261464fe2eb720aa945a211182daa931b33;p=lhc%2Fweb%2Fwiklou.git (bug 973) quickie brake for images with many many uses --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index dc7c67fbf0..139f0247c2 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -132,7 +132,8 @@ class ImagePage extends Article { $imagelinks = $dbr->tableName( 'imagelinks' ); $sql = "SELECT cur_namespace,cur_title FROM $imagelinks,$cur WHERE il_to=" . - $dbr->addQuotes( $this->mTitle->getDBkey() ) . " AND il_from=cur_id"; + $dbr->addQuotes( $this->mTitle->getDBkey() ) . " AND il_from=cur_id" + . " LIMIT 500"; # quickie emergency brake $res = $dbr->query( $sql, DB_SLAVE, "Article::imageLinks" ); if ( 0 == $dbr->numRows( $res ) ) {