I am testing to browse ElkArte 1.1 Beta 3 with multitenancy addon (previously named mesfa) in local browser via local ip address. It works using 1.0 branch but not in 1.1 branch. Also to note - the other domains are also accessing the forum fine (currently enabled) on:
http://alfateh.pi3kum.com/index.php
http://elkarte.ahrasis.com/index.php
http://alfateh.pi3kum.com/index.php
The browser shows:
The error.log logged this:
The said part is only about this code:
// Check if there is a Theme file
if ($id_theme != 1 && !empty($settings['theme_dir']) && file_exists($settings['theme_dir'] . '/Theme.php'))
{
require_once($settings['theme_dir'] . '/Theme.php');
$class = '\\Themes\\' . basename($settings['theme_dir']) . '\\Theme';
$theme = new $class($id_theme);
$context['theme_instance'] = $theme;
}
else
{
$context['theme_instance'] = $context['default_theme_instance'];
}
I am trying to figure out about this and how to fix it, if possible.
$class = '\\Themes\\' . basename(ucfirst($settings['theme_dir']) . 'Theme\\Theme';
Just now whipped it up,
untested.
Tested it with no luck:
Edited: Missing one closing bracket. Now it works.
$class = '\\Themes\\' . basename(ucfirst($settings['theme_dir'])) . 'Theme\\Theme';
@Joshua Dickerson quick question:
https://github.com/elkarte/Elkarte/blob/development/sources/Load.php#L1373
do you remember why the default theme is initialized before trying to see if another theme should be initialized?
Giving a quick look at the code it doesn't seem to do anything particular... It seems.