CMS Made Simple Forums
https://forum.cmsmadesimple.org/

[fixed] Fatal error in global setif CMSMailer is uninstalled
https://forum.cmsmadesimple.org/viewtopic.php?f=75&t=57134
Page 1 of 1

Author:  hoshy [ Thu Oct 06, 2011 8:57 am ]
Post subject:  [fixed] Fatal error in global setif CMSMailer is uninstalled

If you uninstall CMSMailer you cannot access the global settings anymore.
See this bugreport: http://dev.cmsmadesimple.org/bug/view/6925

Author:  calguy1000 [ Thu Oct 06, 2011 2:51 pm ]
Post subject:  Re: Fatal error in global settings if CMSMailer is uninstall

Fixed in svn.

Author:  hoshy [ Thu Oct 06, 2011 5:20 pm ]
Post subject:  Re: [fixed] Fatal error in global setif CMSMailer is uninsta

Well, it works as long as you have at least one core module installed.
Can't you just create a "dummy object" like this:

\$1:
$mod = new CMSModule();
$smarty->assign('mod',$mod);

(tested -> works)
As i can see it is just about the tabs.
So there should be no need of a real active installed module here.

Or just take the first module that can be found no matter if a core module or not. But this assumes that you will have at least one module installed. Though I cannot imagine that someone has no modules installed IMHO the functionality of the global settings should not depend on any module.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/