mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
Update core classes to refer to UA class for robot detection
This commit is contained in:
parent
f1441613a2
commit
37bce0343d
5 changed files with 17 additions and 93 deletions
|
|
@ -1098,7 +1098,11 @@ class documentController extends document
|
|||
function updateReadedCount(&$oDocument)
|
||||
{
|
||||
// Pass if Crawler access
|
||||
if(isCrawler()) return false;
|
||||
if (\Rhymix\Framework\UA::isRobot())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$oDocumentModel = getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue