thank you for testing
Please download new, I have changed the Code again in cms.php, considering a hint from Christoph:
Code: Select all
$pth['folder']['language'] = $pth['folder']['cmsimple'] . 'languages/';
$pth['folder']['langconfig'] = $pth['folder']['cmsimple'] . 'languages/';
// change $sl for subsites and second languages
$subsite_folder_array = explode('/', $_SERVER['PHP_SELF']); // creates array
$subsite_folder = $subsite_folder_array[count($subsite_folder_array) - 2];
if(file_exists('./cmsimplesubsite.htm') || file_exists('./cmsimplelanguage.htm'))
{
$sl = $subsite_folder;
}
// END change $sl for subsites and second languages
Code: Select all
// if (preg_match('/\/[A-z]{2}\/[^\/]*/', sv('PHP_SELF')))
// $sl = strtolower(preg_replace('/.*\/([A-z]{2})\/[^\/]*/', '\1', sv('PHP_SELF')));
If you are testing in a nested intallation, please use only CMSimpleCoAuthors, also for the main installation. CMSimpleCoAuthors "CMS" for the main installation, CMSimpleCoAuthors "Authors" for the Authors installation in a subfolder.
However, please don't test in a nested installation with CMSimple_XH,
Gert