Added missing check for edit_motd permission in motd edit action
Improved class loader compatibility layer handling of classes with the same
name in different namespaces.