X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=blobdiff_plain;f=includes%2Fapi%2FApiQuerySiteinfo.php;h=6fc6aa370c0044200e8c020d5f3791afe4ae41af;hb=127c0072c4d29902fbf2dcfd63464042462270ed;hp=0bb7ff8ef1b71a34750d4f32a032075c8e734207;hpb=7874fc4bec845ad92960b07e969c65f3c3fe74f2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 0bb7ff8ef1..6fc6aa370c 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -253,6 +253,8 @@ class ApiQuerySiteinfo extends ApiQueryBase { $data['maxuploadsize'] = UploadBase::getMaxUploadSize(); $data['minuploadchunksize'] = (int)$config->get( 'MinUploadChunkSize' ); + $data['galleryoptions'] = $config->get( 'GalleryOptions' ); + $data['thumblimits'] = $config->get( 'ThumbLimits' ); ApiResult::setArrayType( $data['thumblimits'], 'BCassoc' ); ApiResult::setIndexedTagName( $data['thumblimits'], 'limit' ); @@ -445,10 +447,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { $showHostnames = $this->getConfig()->get( 'ShowHostnames' ); if ( $includeAll ) { if ( !$showHostnames ) { - $this->dieUsage( - 'Cannot view all servers info unless $wgShowHostnames is true', - 'includeAllDenied' - ); + $this->dieWithError( 'apierror-siteinfo-includealldenied', 'includeAllDenied' ); } $lags = $lb->getLagTimes();