1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 01:00:20 +02:00

Deprecated function include_lan() cleanup. Replaced with e107::lan();

This commit is contained in:
Cameron
2014-02-07 07:03:05 -08:00
parent c6d29662a7
commit f96f755318
20 changed files with 57 additions and 338 deletions

View File

@@ -17,7 +17,9 @@ if (!getperms('P') || !e107::isInstalled('linkwords'))
exit ;
}
require_once(e_ADMIN.'auth.php');
include_lan(e_PLUGIN.'linkwords/languages/'.e_LANGUAGE.'_admin_linkwords.php');
e107::lan('linkwords', e_LANGUAGE."_admin_linkwords.php"); // e_PLUGIN.'linkwords/languages/'.e_LANGUAGE.'_admin_linkwords.php'
define('LW_CACHE_TAG', 'nomd5_linkwords');

View File

@@ -25,7 +25,8 @@
if (!defined('e107_INIT')) { exit; }
include_lan(e_PLUGIN."linkwords/languages/".e_LANGUAGE."_admin_linkwords.php");
e107::lan('linkwords',e_LANGUAGE."_admin_linkwords.php");
if (e_QUERY) list($action,$junk) = explode('.',e_QUERY.'.'); else $action = 'words';

View File

@@ -32,7 +32,9 @@ class e_linkwords
global $pref, $admin_log;
/* constructor */
// Do an auto-update on the variable used to hook parsers - so we should only be called once
include_lan(e_PLUGIN."linkwords/languages/".e_LANGUAGE.".php");
e107::lan('linkwords',e_LANGUAGE); // e_PLUGIN."linkwords/languages/".e_LANGUAGE.".php"
$hooks = explode(",",$pref['tohtml_hook']);
if (($key=array_search('linkwords',$hooks)) !== FALSE)
{