Page 1 of 1
CMSMS 2.0: Accessing the admin theme
Posted: Sat Sep 19, 2015 10:58 am
by pschoenb
Hello,
I have a multilanguage site based on Babel. However, Babel's admin interface no longer works, because the code
Code: Select all
$admintheme = $gCms->variables["admintheme"];
returns null.
Has this variable been removed? If so, what is the new way of accessing the admin theme?
Re: CMSMS 2.0: Accessing the admin theme
Posted: Sat Sep 19, 2015 7:10 pm
by otopanne
How are you still using that module?
I have used it in the past, but it has not been updated for a couple of years now.
I warn you, solving this problem will lead to some other problem! You are better off finding a new multi-lang solution (like
this one made by Rolf)
The problem you are now experiencing was 'caused' by some changes in the CMSMS core somewhere during the 1.9 to 1.10 or 1.10 to 1.11 upgrade. More modules were effected by this little change.
The solution to your question is actually quite simple and is explained in
this topic
[removed by moderator]
Not sure, but from memory I believe that right after you solve this trivial problem, babel throws a new one at you. I might be able to find reference to the way I solved that error back then.
But really, I must warn you: babel is not supported anymore and more things have been broken during upgrades of the core of CMSMS.
Re: CMSMS 2.0: Accessing the admin theme
Posted: Sat Sep 19, 2015 8:41 pm
by otopanne
@velden:
How is this a 'mod'?
I have read and understood the rules stated in
http://forum.cmsmadesimple.org/viewtopi ... 40&t=28132
This is not a mod. Not a hack.
This is the official 'fix'
posted and explained by Calguy, to solve a problem with a module that is not being maintained by its creator anymore.
@pschoenb
In the topic linked to above, you'll find that the $gCms->variables['admintheme'] has changed to something else. If you want babel to work, you
could file a bug report and ask the creator to update the module.
Otherwise, if you're capable there is enough information in this topic to do it yourself.