Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: class_language.php 4047 2008-07-26 03:21:29Z ZiNgaBuRgA $
| * $Id: class_language.php 4078 2008-08-07 04:00:44Z Tikitiki $
|
*/
class MyLanguage
| */
class MyLanguage
|
Zeile 91 | Zeile 91 |
---|
$this->settings = $langinfo;
// Load the admin language files as well, if needed.
|
$this->settings = $langinfo;
// Load the admin language files as well, if needed.
|
if($area == "admin" || $area == "admin.old") // temporary: "|| $area == "admin.old""
| if($area == "admin")
|
{ if(!is_dir($this->path."/".$language."/{$area}")) {
| { if(!is_dir($this->path."/".$language."/{$area}")) {
|
Zeile 129 | Zeile 129 |
---|
if($isdatahandler === true) { $this->language = str_replace('/admin', '', $this->language);
|
if($isdatahandler === true) { $this->language = str_replace('/admin', '', $this->language);
|
$lfile = $this->path."/".$this->language."/".$section.".lang.php"; } else { $lfile = $this->path."/".$this->language."/".$section.".lang.php";
| |
}
|
}
|
| $lfile = $this->path."/".$this->language."/".$section.".lang.php";
|
if(file_exists($lfile))
|
if(file_exists($lfile))
|
{
| {
|
require_once $lfile;
|
require_once $lfile;
|
| } elseif(file_exists($this->path."/english/".$section.".lang.php")) { require_once $this->path."/english/".$section.".lang.php";
|
} else {
| } else {
|