Commit b9c4bd6f authored by Christoph Hofmann's avatar Christoph Hofmann

bugfix

parent 767b9cd9
......@@ -1694,15 +1694,15 @@ class tx_realurl {
// Log error
if (!$this->extConf['init']['disableErrorLog']) {
$hash = t3lib_div::md5int($this->speakingURIpath_procValue);
$hash = TYPO3\CMS\Core\Utility\GeneralUtility::md5int($this->speakingURIpath_procValue);
$rootpage_id = intval($this->extConf['pagePath']['rootpage_id']);
$cond = 'url_hash=' . intval($hash) . ' AND rootpage_id=' . $rootpage_id;
$fields_values = array('url_hash' => $hash, 'url' => $this->speakingURIpath_procValue, 'error' => $msg, 'counter' => 1, 'tstamp' => time(), 'cr_date' => time(), 'rootpage_id' => $rootpage_id, 'last_referer' => t3lib_div::getIndpEnv('HTTP_REFERER'));
$fields_values = array('url_hash' => $hash, 'url' => $this->speakingURIpath_procValue, 'error' => $msg, 'counter' => 1, 'tstamp' => time(), 'cr_date' => time(), 'rootpage_id' => $rootpage_id, 'last_referer' => TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_REFERER'));
if ($this->useMySQLExtendedSyntax) {
/** @noinspection PhpUndefinedMethodInspection */
$query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_realurl_errorlog', $fields_values);
/** @noinspection PhpUndefinedMethodInspection */
$query .= ' ON DUPLICATE KEY UPDATE ' . 'error=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($msg, 'tx_realurl_errorlog') . ',' . 'counter=counter+1,' . 'tstamp=' . $fields_values['tstamp'] . ',' . 'last_referer=' . $GLOBALS['TYPO3_DB']->fullQuoteStr(t3lib_div::getIndpEnv('HTTP_REFERER'), 'tx_realurl_errorlog');
$query .= ' ON DUPLICATE KEY UPDATE ' . 'error=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($msg, 'tx_realurl_errorlog') . ',' . 'counter=counter+1,' . 'tstamp=' . $fields_values['tstamp'] . ',' . 'last_referer=' . $GLOBALS['TYPO3_DB']->fullQuoteStr(TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_REFERER'), 'tx_realurl_errorlog');
/** @noinspection PhpUndefinedMethodInspection */
$GLOBALS['TYPO3_DB']->sql_query($query);
} else {
......
......@@ -1120,7 +1120,7 @@ class tx_realurl_advanced {
$allTitles = array();
foreach ($segTitleFieldArray as $fieldName) {
if (is_array($titles[$fieldName])) {
$allTitles = t3lib_div::array_merge($allTitles, $titles[$fieldName]);
$allTitles = TYPO3\CMS\Core\Utility\GeneralUtility::array_merge($allTitles, $titles[$fieldName]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment