1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Moved debug information.

This commit is contained in:
Cameron 2016-05-05 13:39:33 -07:00
parent d58ac82248
commit 262bd68fe1

View File

@ -157,14 +157,14 @@ class core_page_sef_chapters_url extends eUrlConfig
$name = $sql->fetch();
$request->setRequestParam('id', $name['chapter_id']);
$request->setRequestParam('type', 'bk');
e107::getMessage()->addDebug("Set CHAPTER ID = '".$name['chapter_id']."'");
e107::getDebug()->log("Set CHAPTER ID = '".$name['chapter_id']."'");
}
elseif($sql->select('page', 'page_id', "page_sef='{$name}'")) // fall back to pages.
{
$name = $sql->fetch();
$request->setRequestParam('id', $name['page_id']);
$request->setRequestParam('type', 'id');
e107::getMessage()->addDebug("Set PAGE ID = '".$name['page_id']."'");
e107::getDebug()->log("Set PAGE ID = '".$name['page_id']."'");
}
else
{