Skip to content

Commit

Permalink
Use the JLogEntry class (#16342)
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo authored and wilsonge committed May 29, 2017
1 parent 7ef553a commit 12747a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/src/Joomla/CMS/Log/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public static function add($entry, $priority = self::INFO, $category = '', $date
// If the entry object isn't a LogEntry object let's make one.
if (!($entry instanceof LogEntry))
{
$entry = new LogEntry((string) $entry, $priority, $category, $date);
// We need here to use JLogEntry, otherwise the class don't get loaded, aaargh
$entry = new \JLogEntry((string) $entry, $priority, $category, $date);
}

static::$instance->addLogEntry($entry);
Expand Down

0 comments on commit 12747a6

Please sign in to comment.