1
0
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:
e107steved
2012-01-02 22:06:22 +00:00
parent 7998e4f247
commit 8962c13f50
33 changed files with 87 additions and 53 deletions

View File

@@ -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']);
}
}

View File

@@ -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)
{