1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 03:54:09 +02:00

Language selection simplification

switch to include_lan for the time being

work in progress
This commit is contained in:
marj
2009-08-15 11:55:30 +00:00
parent af59a5077e
commit 3420b193ab
43 changed files with 155 additions and 172 deletions

View File

@@ -11,12 +11,12 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/admin_config.php,v $
| $Revision: 1.8 $
| $Revision: 1.9 $
|
| ***** START OF VERSION WHICH ALLOWS TOOLTIPS (also order of forms changed )
|
| $Date: 2008-12-13 18:04:52 $
| $Author: e107steved $
| $Date: 2009-08-15 11:55:30 $
| $Author: marj_nl_fr $
+----------------------------------------------------------------------------+
*/
require_once("../../class2.php");
@@ -26,7 +26,7 @@ if (!getperms("P") || !plugInstalled('linkwords'))
exit ;
}
require_once(e_ADMIN."auth.php");
@include_lan(e_PLUGIN."linkwords/languages/".e_LANGUAGE."_admin_linkwords.php");
include_lan(e_PLUGIN."linkwords/languages/".e_LANGUAGE."_admin_linkwords.php");
define('LW_CACHE_TAG', 'nomd5_linkwords');
$lw_context_areas = array(

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $
| $Revision: 1.10 $
| $Date: 2008-12-07 21:55:01 $
| $Author: e107steved $
| $Revision: 1.11 $
| $Date: 2009-08-15 11:55:30 $
| $Author: marj_nl_fr $
|
| This is just a stub so that systems migrated from 0.7 don't crash
| It auto-updates the prefs so that the newer routine is called in future.
@@ -32,7 +32,7 @@ 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");
include_lan(e_PLUGIN."linkwords/languages/".e_LANGUAGE.".php");
$hooks = explode(",",$pref['tohtml_hook']);
if (($key=array_search('linkwords',$hooks)) !== FALSE)
{