aboutsummaryrefslogtreecommitdiff
path: root/mod/logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logrotate')
-rw-r--r--mod/logrotate/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/logrotate/start.php b/mod/logrotate/start.php
index 28c1694eb..25c01d45b 100644
--- a/mod/logrotate/start.php
+++ b/mod/logrotate/start.php
@@ -8,7 +8,7 @@
elgg_register_event_handler('init', 'system', 'logrotate_init');
function logrotate_init() {
- $period = get_plugin_setting('period', 'logrotate');
+ $period = elgg_get_plugin_setting('period', 'logrotate');
switch ($period) {
case 'weekly':
case 'monthly' :
@@ -31,7 +31,7 @@ function logrotate_cron($hook, $entity_type, $returnvalue, $params) {
$day = 86400;
$offset = 0;
- $period = get_plugin_setting('period', 'logrotate');
+ $period = elgg_get_plugin_setting('period', 'logrotate');
switch ($period) {
case 'weekly':
$offset = $day * 7;