mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 00:41:52 +02:00
e107 class improvement: getMessageHandler() method added (for consistency), getLan() renamed to includeLan()
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
* General purpose file
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
* $Revision: 1.144 $
|
||||
* $Date: 2009-09-15 13:34:09 $
|
||||
* $Revision: 1.145 $
|
||||
* $Date: 2009-09-19 15:27:26 $
|
||||
* $Author: secretr $
|
||||
*
|
||||
*/
|
||||
@@ -1876,10 +1876,10 @@ function class_list($uid = '')
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
//DEPRECATED - use e107::getLan();
|
||||
//DEPRECATED - use e107::includeLan();
|
||||
function include_lan($path, $force = false)
|
||||
{
|
||||
return e107::getLan($path, $force);
|
||||
return e107::includeLan($path, $force);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -9,8 +9,8 @@
|
||||
* News Administration
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
|
||||
* $Revision: 1.53 $
|
||||
* $Date: 2009-09-14 18:22:15 $
|
||||
* $Revision: 1.54 $
|
||||
* $Date: 2009-09-19 15:27:25 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
@@ -2375,7 +2375,7 @@ class admin_newspost
|
||||
|
||||
function show_options()
|
||||
{
|
||||
$e107 = &e107::getInstance();
|
||||
$e107 = e107::getInstance();
|
||||
|
||||
$var['main']['text'] = NWSLAN_44;
|
||||
$var['main']['link'] = e_SELF;
|
||||
|
@@ -9,8 +9,8 @@
|
||||
* e107 Main
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
|
||||
* $Revision: 1.50 $
|
||||
* $Date: 2009-09-14 18:22:15 $
|
||||
* $Revision: 1.51 $
|
||||
* $Date: 2009-09-19 15:27:26 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
|
||||
@@ -58,6 +58,12 @@ class e107
|
||||
*/
|
||||
protected static $_sc_core_loaded = false;
|
||||
|
||||
/**
|
||||
* message handler included check
|
||||
* @var boolean
|
||||
*/
|
||||
protected static $_message_included = false;
|
||||
|
||||
/**
|
||||
* Singleton instance
|
||||
* Allow class extends - override {@link getInstance()}
|
||||
@@ -428,7 +434,6 @@ class e107
|
||||
e107::setRegistry($id, new $class_name());
|
||||
}
|
||||
|
||||
|
||||
return self::getRegistry($id);
|
||||
}
|
||||
|
||||
@@ -785,6 +790,21 @@ class e107
|
||||
return self::getSingleton('e_online', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve message handler singleton
|
||||
*
|
||||
* @return eMessage
|
||||
*/
|
||||
public static function getMessageHandler()
|
||||
{
|
||||
if(!self::$_message_included)
|
||||
{
|
||||
e107_require_once(e_HANDLER.'message_handler.php');
|
||||
self::$_message_included = true;
|
||||
}
|
||||
return eMessage::getInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get core template. Use this method for templates, which are following the
|
||||
* new template standards:
|
||||
@@ -911,7 +931,7 @@ class e107
|
||||
* @param boolean $force
|
||||
* @return string
|
||||
*/
|
||||
public static function getLan($path, $force = false)
|
||||
public static function includeLan($path, $force = false)
|
||||
{
|
||||
global $pref;
|
||||
if (!is_readable($path))
|
||||
|
@@ -9,9 +9,9 @@
|
||||
* Installation file
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/install_.php,v $
|
||||
* $Revision: 1.41 $
|
||||
* $Date: 2009-09-17 13:52:33 $
|
||||
* $Author: e107coders $
|
||||
* $Revision: 1.42 $
|
||||
* $Date: 2009-09-19 15:27:26 $
|
||||
* $Author: secretr $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -148,7 +148,7 @@ unset($e107_paths);
|
||||
|
||||
function include_lan($path, $force = false)
|
||||
{
|
||||
return e107::getLan($path, $force);
|
||||
return e107::includeLan($path, $force);
|
||||
}
|
||||
//obsolete $e107->e107_dirs['INSTALLER'] = "{$installer_folder_name}/";
|
||||
|
||||
|
Reference in New Issue
Block a user