fix for authenticated language switching
only enable devmode if php > 5.3.x
hardcoded published/draft to pages and blogs