1
0
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:
Cameron
2020-12-18 09:39:02 -08:00
parent 582c48fc21
commit f5153bf640
55 changed files with 509 additions and 3218 deletions

View File

@@ -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']);