1
At an complex module with a deeper directory structure loadModule returns the wrong pagetype
For e.g
Module foo
/foo/
index.php pagetype main
/foo/foo1/
index.php pagetype admin
/foo/foo1/foo2/
index.php pagetype main
If the structure is going deeper the rest will be all of pagetype admin.
Workaround : Put in every directory an xoopsversion.php