Merge pull request #256 from kitodo/scrutinizer-patch-2
Fixes upper/lower case.
This commit is contained in:
commit
a5c2110400
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue