Yaron Koren has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/389875 )
Change subject: Improved display for Special:Drilldown if table doesn't exist
......................................................................
Improved display for Special:Drilldown if table doesn't exist
Change-Id: I20b3b24be551da78e6e7a79088273af92866098f
---
M drilldown/CargoSpecialDrilldown.php
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cargo
refs/changes/75/389875/2
diff --git a/drilldown/CargoSpecialDrilldown.php
b/drilldown/CargoSpecialDrilldown.php
index 8627fa7..9c9eb90 100644
--- a/drilldown/CargoSpecialDrilldown.php
+++ b/drilldown/CargoSpecialDrilldown.php
@@ -58,7 +58,14 @@
$tableName .= '__NEXT';
}
- $tableSchemas = CargoUtils::getTableSchemas( array( $tableName
) );
+ try {
+ $tableSchemas = CargoUtils::getTableSchemas( array(
$tableName ) );
+ } catch ( MWException $e ) {
+ $out->addHTML( Html::element( 'div', array( 'class' =>
'error' ),
+ $this->msg( 'cargo-cargotables-tablenotfound',
$tableName )->parse() ) . "\n" );
+ return;
+ }
+
$all_filters = array();
$fullTextSearchTerm = null;
$searchablePages = in_array( 'fullText',
$wgCargoPageDataColumns );
--
To view, visit https://gerrit.wikimedia.org/r/389875
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I20b3b24be551da78e6e7a79088273af92866098f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits