Skip to content

Commit

Permalink
Update DataTables.php
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Feb 20, 2025
1 parent 7111678 commit 7251e56
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions formats/datatables/DataTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
use Html;
use RequestContext;
use SMW\DIWikiPage;
use SMW\Message;
use SMW\Localizer\Message;
use SMW\Query\PrintRequest;
use SMW\ResultPrinter;
use SMW\Query\ResultPrinters\ResultPrinter;
use SMW\Utils\HtmlTable;
use SMWPrintRequest;
use SMWPropertyValue;
use SMWQueryResult as QueryResult;
use SMW\Query\PrintRequest;
use SMW\DataValues\PropertyValue;
use SMW\Query\QueryResult;
use SRF\DataTables\SearchPanes;

class DataTables extends ResultPrinter {
Expand Down Expand Up @@ -525,7 +525,7 @@ protected function getResultText( QueryResult $res, $outputmode ) {

$headerList = [];
foreach ( $printouts as $printout ) {
$headerList[] = ( $printout[0] !== SMWPrintRequest::PRINT_THIS ? $printout[1] : '' );
$headerList[] = ( $printout[0] !== PrintRequest::PRINT_THIS ? $printout[1] : '' );
}

// @TODO put inside $this->formatOptions
Expand Down Expand Up @@ -683,7 +683,7 @@ private function getPrintouts( $printRequests ) {

$data = $printRequest->getData();

$name = ( $data instanceof SMWPropertyValue ?
$name = ( $data instanceof PropertyValue ?
$data->getDataItem()->getKey() : null );

$parameters = $printRequest->getParameters();
Expand Down

0 comments on commit 7251e56

Please sign in to comment.