mirror of
https://github.com/e107inc/e107.git
synced 2025-04-16 18:42:01 +02:00
BC Fixes for some old plugins.
This commit is contained in:
parent
a77b06881a
commit
ca5f33655b
@ -102,7 +102,8 @@ class admin_start
|
||||
'lightbox' => 1.5,
|
||||
'e107slider' => 0.1,
|
||||
'forumthanks' => 0.5,
|
||||
'eclassifieds' => 1.11
|
||||
'eclassifieds' => 1.11,
|
||||
'jshelpers' => '0.3b'
|
||||
|
||||
);
|
||||
|
||||
|
@ -4667,16 +4667,15 @@ class e107
|
||||
|
||||
/**
|
||||
* Retrieve & cache host name
|
||||
*
|
||||
* @deprecated but needed by some old plugins/menus.
|
||||
* @todo Find old calls and replace with code within.
|
||||
* @param string $ip_address
|
||||
* @return string host name
|
||||
* FIXME - moved to ipHandler - check for calls elsewhere
|
||||
*/
|
||||
/*
|
||||
public function get_host_name($ip_address)
|
||||
{
|
||||
|
||||
} */
|
||||
return self::getIPHandler()->get_host_name($ip_address);
|
||||
}
|
||||
|
||||
/**
|
||||
* MOVED TO eHelper::parseMemorySize()
|
||||
|
@ -603,9 +603,10 @@ class e_menu
|
||||
global $sc_style, $e107_debug;
|
||||
|
||||
|
||||
$sql = e107::getDb();
|
||||
$ns = e107::getRender();
|
||||
$tp = e107::getParser();
|
||||
$sql = e107::getDb();
|
||||
$ns = e107::getRender();
|
||||
$tp = e107::getParser();
|
||||
$e107cache = e107::getCache(); // Often used by legacy menus.
|
||||
|
||||
if($tmp = e107::unserialize($parm)) // support e_menu.php e107 serialized parm.
|
||||
{
|
||||
|
@ -468,7 +468,7 @@ class e_parse_shortcode
|
||||
}
|
||||
else
|
||||
{
|
||||
e107::getDebug()->log("Couldn't Find Class '".$className."' in <b>".$path."</b>");
|
||||
e107::getDebug()->log("File not available: <i>".$path."</i>. Couldn't Find Class '".$className."' in <b>".$path."</b>");
|
||||
}
|
||||
|
||||
// e107::getDebug()->log( "<div class='alert alert-danger'>Couldn't Load: <b>".$path."</b> with class-name:<b> {$className}</b> and pluginName <b>{$pluginName}</b></div>");
|
||||
|
@ -92,12 +92,12 @@ class news_front
|
||||
|
||||
$this->text .= $this->renderDefaultTemplate();
|
||||
|
||||
if(isset($this->pref['nfp_display']) && $this->pref['nfp_display'] == 2 && is_readable(e_PLUGIN."newforumposts_main/newforumposts_main.php"))
|
||||
// BC replacement for newforumposts_main
|
||||
if(e107::isInstalled('newforumposts_main') && !empty($this->pref['nfp_display']))
|
||||
{
|
||||
ob_start();
|
||||
require_once(e_PLUGIN."newforumposts_main/newforumposts_main.php");
|
||||
$this->text .= ob_get_contents();
|
||||
ob_end_clean();
|
||||
$parms = array('layout'=>'main', 'display'=>$this->pref['nfp_amount']);
|
||||
|
||||
$this->text .= e107::getMenu()->renderMenu('forum','newforumposts_menu', $parms, true);
|
||||
}
|
||||
|
||||
$this->text .= $this->show_newsarchive();
|
||||
@ -107,6 +107,8 @@ class news_front
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private function getRenderId()
|
||||
{
|
||||
$tmp = explode('/',$this->route);
|
||||
|
@ -129,5 +129,11 @@ class pmbox_manager
|
||||
|
||||
}
|
||||
|
||||
// Backward compat. fix.
|
||||
function pm_getInfo($which = 'inbox')
|
||||
{
|
||||
$pm = new pmbox_manager;
|
||||
|
||||
?>
|
||||
return $pm->pm_getInfo($which);
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user