Skip to content

Commit

Permalink
OXDEV-623 Format query to be more readable
Browse files Browse the repository at this point in the history
(cherry picked from commit fd6563a)
  • Loading branch information
sauliusstasiukaitis committed Dec 7, 2017
1 parent 011aca9 commit 985893e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/Application/Controller/Admin/ShopRdfa.php
Expand Up @@ -44,10 +44,12 @@ public function getContentList()
$oContentList = oxNew(\OxidEsales\Eshop\Application\Model\ContentList::class);
$sTable = getViewName("oxcontents", $this->_iEditLang);
$oContentList->selectString(
"SELECT * FROM {$sTable} WHERE OXACTIVE = 1 AND OXTYPE = 0
AND OXLOADID IN ('oxagb', 'oxdeliveryinfo', 'oximpressum', 'oxrightofwithdrawal')
AND OXSHOPID = '" . \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("oxid") . "'"
); // $this->getEditObjectId()
"SELECT *
FROM {$sTable}
WHERE OXACTIVE = 1 AND OXTYPE = 0
AND OXLOADID IN ('oxagb', 'oxdeliveryinfo', 'oximpressum', 'oxrightofwithdrawal')
AND OXSHOPID = '" . \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("oxid") . "'"
);

return $oContentList;
}
Expand Down

0 comments on commit 985893e

Please sign in to comment.