mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
#Issue #4473 - some merged code.
This commit is contained in:
@@ -1648,6 +1648,7 @@ class comment
|
|||||||
public function loadNested($id, $type, $sort)
|
public function loadNested($id, $type, $sort)
|
||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
$this->nestedComments = array();
|
||||||
|
|
||||||
$query = "SELECT c.*, u.*, ue.*, r.* FROM #comments AS c
|
$query = "SELECT c.*, u.*, ue.*, r.* FROM #comments AS c
|
||||||
LEFT JOIN #user AS u ON c.comment_author_id = u.user_id
|
LEFT JOIN #user AS u ON c.comment_author_id = u.user_id
|
||||||
|
@@ -9,20 +9,14 @@
|
|||||||
|
|
||||||
protected function _before()
|
protected function _before()
|
||||||
{
|
{
|
||||||
if(e107::getDb()->isEmpty('comments'))
|
e107::getDb()->truncate('comments');
|
||||||
|
$path = codecept_data_dir().'comments/commentsSetup.xml';
|
||||||
|
$result = e107::getXml()->e107Import($path);
|
||||||
|
if(!empty($result['failed']))
|
||||||
{
|
{
|
||||||
$path = codecept_data_dir().'comments/commentsSetup.xml';
|
$this->fail("Comment setup failed. ".print_r($result['failed'], true));
|
||||||
$result = e107::getXml()->e107Import($path);
|
|
||||||
if(!empty($result['failed']))
|
|
||||||
{
|
|
||||||
$this->fail("Vstore setup failed. ".print_r($result['failed'], true));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->cm = e107::getComment();
|
$this->cm = e107::getComment();
|
||||||
|
@@ -1076,6 +1076,7 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
$e107 = $this->e107;
|
$e107 = $this->e107;
|
||||||
$templates = scandir(e_CORE . "templates");
|
$templates = scandir(e_CORE . "templates");
|
||||||
|
|
||||||
|
$e107::loadAdminIcons();
|
||||||
|
|
||||||
$exclude = array(
|
$exclude = array(
|
||||||
'bbcode_template.php',
|
'bbcode_template.php',
|
||||||
|
Reference in New Issue
Block a user