- Timestamp:
- May 10, 2011, 3:20:19 PM (14 years ago)
- Location:
- branches/Ver3.0/xpressme_integration_kit
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/class/config_from_xoops.class.php
r733 r743 12 12 * The function to acquire only a set value without calling the XOOPS system is here. 13 13 */ 14 require_once dirname( __FILE__ ).'/wpInfo_class.php' ; 15 14 16 class ConfigFromXoops{ 15 17 var $xoops_mainfile_path; … … 49 51 var $xoops_db_pconnect; 50 52 var $xoops_path; 53 var $xoops_lang; 54 var $wp_lang; 51 55 52 56 function __constructor() //for PHP5 … … 97 101 if(defined('XOOPS_DB_SALT')) $this->xoops_db_salt = XOOPS_DB_SALT; else $this->xoops_db_salt = ''; 98 102 if(defined('XOOPS_SALT')) $this->xoops_salt = XOOPS_SALT; else $this->xoops_salt = ''; 103 $this->xoops_lang = @$GLOBALS["xoopsConfig"]['language']; 104 $wp_info = new wpInfo; 105 $this->wp_lang = $wp_info->get_wpLang($this->xoops_lang); 106 99 107 } 100 108 -
branches/Ver3.0/xpressme_integration_kit/wp-config.php
r535 r743 73 73 * Example: 74 74 * define ('WPLANG', ''); // language support to English 75 * define ('WPLANG', 'ja'); // language support to Japanese 75 76 */ 76 define ('WPLANG', 'ja'); // language support to Japanese77 define ('WPLANG', $xoops_config->wp_lang); // language detect from xoops language 77 78 78 79 /* That's all, stop editing! Happy blogging. */
Note: See TracChangeset
for help on using the changeset viewer.