mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 08:26:59 +02:00
Move translate function so it's accessible from all admin parts. Correctly change $l->translate() calls to it
This commit is contained in:
@@ -118,7 +118,7 @@ class Popularity
|
||||
$data = array();
|
||||
|
||||
foreach ($chart_data as $date => $count) {
|
||||
$labels[] = self::getGrav()['grav']['language']->translate(['PLUGIN_ADMIN.' . strtoupper(date('D', strtotime($date)))]);
|
||||
$labels[] = self::getGrav()['grav']['admin']->translate(['PLUGIN_ADMIN.' . strtoupper(date('D', strtotime($date)))]);
|
||||
$data[] = $count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user