From 58f59261464fe2eb720aa945a211182daa931b33 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 2 Dec 2004 03:04:56 +0000 Subject: [PATCH] (bug 973) quickie brake for images with many many uses --- includes/ImagePage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ) { -- 2.20.1