1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

$online_shortcodes now loaded correctly using e107::getScBatch(). (Could break old plugins)

This commit is contained in:
Cameron
2021-01-08 13:47:54 -08:00
parent eec9a163cb
commit 0fabc9aa9c
4 changed files with 25 additions and 28 deletions

View File

@@ -12,8 +12,8 @@
if (!defined('e107_INIT')) { exit; }
register_shortcode('online_shortcodes', true);
$online_shortcodes = initShortcodeClass('online_shortcodes');
//register_shortcode('online_shortcodes', true);
// $online_shortcodes = initShortcodeClass('online_shortcodes');
e107::plugLan('online', null);
@@ -73,6 +73,7 @@ class online_shortcodes extends e_shortcode
}
$seen_ago = $this->gen->computeLapse($this->currentUser['user_currentvisit'], false, false, true, 'short');
return $seen_ago;
// return ($seen_ago ? $seen_ago : '1 '.LANDT_09).' '.LANDT_AGO;
}