Merge pull request #256 from kitodo/scrutinizer-patch-2

Fixes upper/lower case.
This commit is contained in:
Sebastian Meyer 2017-12-20 21:21:14 +01:00 committed by GitHub
commit a5c2110400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -931,7 +931,7 @@ final class tx_dlf_document {
foreach($this->physicalStructureInfo as $page) {
if(strpos($page['orderlabel'], $logicalPage) !== false) {
if(strpos($page['orderlabel'], $logicalPage) !== FALSE) {
$this->lastSearchedPhysicalPage['logicalPage'] = $logicalPage;
$this->lastSearchedPhysicalPage['physicalPage'] = $physicalPage;

View File

@ -73,7 +73,7 @@ class tx_dlf_basket extends tx_dlf_plugin {
$GLOBALS['TSFE']->fe_user->setKey('ses', 'tx_dlf_basket', '');
$GLOBALS['TSFE']->fe_user->sesData_change = true;
$GLOBALS['TSFE']->fe_user->sesData_change = TRUE;
$GLOBALS['TSFE']->fe_user->storeSessionData();
@ -412,7 +412,7 @@ class tx_dlf_basket extends tx_dlf_plugin {
}
if ($page != null || $_piVars['addToBasket'] == 'list') {
if ($page != NULL || $_piVars['addToBasket'] == 'list') {
$documentItem = array(
'id' => intval($_piVars['id']),
@ -442,7 +442,7 @@ class tx_dlf_basket extends tx_dlf_plugin {
$document = tx_dlf_document::getInstance($documentItem['id'],0);
// set endpage for toc and subentry based on logid
if (($_piVars['addToBasket'] == 'subentry') OR ($_piVars['addToBasket'] == 'toc')) {
if (($_piVars['addToBasket'] == 'subentry') or ($_piVars['addToBasket'] == 'toc')) {
$smLinks = $document->smLinks;
@ -724,7 +724,7 @@ class tx_dlf_basket extends tx_dlf_plugin {
}
return false;
return FALSE;
}

View File

@ -166,7 +166,7 @@ class tx_dlf_pageview extends tx_dlf_plugin {
$params = array(
'id' => $this->piVars['id'],
'addToBasket' => true
'addToBasket' => TRUE
);
if (empty($this->piVars['page'])) {