}
/**
- * Return the result wrapper.
+ * @return ResultWrapper The result wrapper.
*/
function getResult() {
return $this->mResult;
$numRows = $res->numRows();
if ( $numRows ) {
# Remove any table prefix from index field
- $indexColumn = end( explode( '.', $this->mIndexField ) );
+ $parts = explode( '.', $this->mIndexField );
+ $indexColumn = end( $parts );
$row = $res->fetchRow();
$firstIndex = $row[$indexColumn];
function getNavigationBar() {
global $wgStylePath, $wgContLang;
- if ( !$this->isNavigationBarShown() ) return '';
+ if ( !$this->isNavigationBarShown() ) {
+ return '';
+ }
$path = "$wgStylePath/common/images";
$labels = array(