mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 21:32:09 +02:00
Update function calls where moved from e107_class.php to iphandler_class.php
This commit is contained in:
@@ -118,7 +118,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
{
|
||||
if($this->postInfo['post_user_anon'] && (ADMIN || MODERATOR))
|
||||
{
|
||||
return $this->e107->ipDecode($this->postInfo['post_ip']);
|
||||
return e107::getIPHandler()->ipDecode($this->postInfo['post_ip']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
{
|
||||
if((ADMIN || MODERATOR) && !$this->postInfo['user_admin'])
|
||||
{
|
||||
return $this->e107->ipDecode($this->postInfo['post_ip']);
|
||||
return e107::getIPHandler()->ipDecode($this->postInfo['post_ip']);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -222,7 +222,7 @@ if (isset($_POST['newthread']) || isset($_POST['reply']))
|
||||
exit;
|
||||
}
|
||||
$hasPoll = ($action == 'nt' && varset($_POST['poll_title']) && $_POST['poll_option'][0] != '' && $_POST['poll_option'][1] != '');
|
||||
$postInfo['post_ip'] = $e107->getip();
|
||||
$postInfo['post_ip'] = e107::getIPHandler()->getIP(FALSE);
|
||||
|
||||
if (USER)
|
||||
{
|
||||
|
Reference in New Issue
Block a user