Small bug fix in modules config dialog.     -When enabling a module, if e_module_enable fails, set proper state and get out. Also, do not set cm->state = MOD_ENABLED unless the enable was actually successful.     -When disabling a module, only set state to UNLOADED if e_module_disable worked.
Small bug fix in modules config dialog.
    -When enabling a module, if e_module_enable fails, set proper state
and get out. Also, do not set cm->state = MOD_ENABLED unless the enable was
actually successful.
    -When disabling a module, only set state to UNLOADED if e_module_disable
worked.


git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@23538 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

jordemort/e17,jordemort/e17,jordemort/e17