mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 01:00:20 +02:00
Updating of deprecated method usage. Removal of old files. Log tests added.
This commit is contained in:
@@ -170,7 +170,7 @@ class news {
|
||||
{
|
||||
|
||||
|
||||
e107::getAdminLog()->logArrayAll('NEWS_09', $logData);
|
||||
e107::getAdminLog()->addArray($logData)->save('NEWS_09');
|
||||
|
||||
|
||||
$data['data']['news_id'] = $news['news_id'];
|
||||
@@ -224,7 +224,7 @@ class news {
|
||||
e107::getCache()->clear('news.php');
|
||||
|
||||
//moved down - prevent wrong mysql_insert_id
|
||||
e107::getAdminLog()->logArrayAll('NEWS_08', $logData);
|
||||
e107::getAdminLog()->addArray($logData)->save('NEWS_08');
|
||||
e107::getEvent()->trigger('newspost', $data['data']);
|
||||
e107::getEvent()->trigger('admin_news_created', $data['data']);
|
||||
|
||||
|
Reference in New Issue
Block a user