Commit 56dfb42d authored by Wouter Wolters's avatar Wouter Wolters Committed by Georg Ringer
Browse files

[!!!][TASK] Drop removeLoginpagesWithContentHash from Indexer.php

Unused since at least TYPO3 CMS 6.0

Resolves: #68193
Releases: master
Change-Id: I75bf495959d33eff48aeb587aa816dc7947985ef
Reviewed-on: http://review.typo3.org/41371


Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent b551d5f8
========================================================================
Breaking: #68193 - Drop removeLoginpagesWithContentHash from Indexer.php
========================================================================
Description
===========
The method ``\TYPO3\CMS\IndexedSearch\Indexer::removeLoginpagesWithContentHash()`` is not used within the core since 6.0 and is removed now.
Impact
======
Calling ``\TYPO3\CMS\IndexedSearch\Indexer::removeLoginpagesWithContentHash()`` will throw a fatal error.
Affected Installations
======================
All installations with third party code using the mentioned method.
Migration
=========
No migration is available.
\ No newline at end of file
......@@ -1868,27 +1868,6 @@ class Indexer {
}
}
/**
* Removes any indexed pages with userlogins which has the same contentHash
* NOT USED anywhere inside this class!
*
* @return void
*/
public function removeLoginpagesWithContentHash() {
if (IndexedSearchUtility::isTableUsed('index_phash') && IndexedSearchUtility::isTableUsed('index_grlist')) {
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('A.phash', 'index_phash A,index_grlist B', '
A.phash=B.phash
AND A.phash_grouping=' . (int)$this->hash['phash_grouping'] . '
AND B.hash_gr_list<>' . IndexedSearchUtility::md5inthash($this->defaultGrList) . '
AND A.contentHash=' . (int)$this->content_md5h);
while ($res && FALSE !== ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {
$this->log_setTSlogMessage('The currently indexed page was indexed under no user-login and apparently this page has been indexed under login conditions earlier, but with the SAME content. Therefore the old similar page with phash=\'' . $row['phash'] . '\' are now removed.', 1);
$this->removeOldIndexedPages($row['phash']);
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
}
}
/**
* Includes the crawler class
*
......
Supports Markdown
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