From e9fe7ecc2ef5f2ab8be681ad8c4f530a0c8ab93f Mon Sep 17 00:00:00 2001 From: durandalwoz Date: Tue, 28 Jun 2016 03:26:21 -0300 Subject: [PATCH] Revert "Avatar shortcode for forum_template" This reverts commit 0d5b1e99882023c30897a2e852d4b3ac464ea96a. --- .../forum/shortcodes/batch/forum_shortcodes.php | 4 ---- .../shortcodes/batch/viewforum_shortcodes.php | 14 -------------- 2 files changed, 18 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php index e06980138..e68decd18 100644 --- a/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php @@ -699,8 +699,4 @@ $gen = new convert; return $frm->breadcrumb($breadarray); } - function sc_avatar($opts) - { - return e107::getParser()->toAvatar(e107::user($this->var['forum_lastpost_user']),$opts); - } } diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index 09b23e5f1..ecc2049af 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -888,19 +888,5 @@ $LASTPOSTUSER = $this->var['lastpost_username']; } */ - function sc_avatar($opts) - { - if (isset($this->var['thread_id'])) - { - return e107::getParser()->toAvatar(e107::user($this->var['thread_lastuser']),$opts); - } - elseif (isset($this->var['forum_id'])) - { - return e107::getParser()->toAvatar(e107::user($this->var['forum_lastpost_user']),$opts); - } - - return ''; - // return print_r($this->var); - } } ?> \ No newline at end of file