MDL-47817 web services: Fixed check of inexistent constant WS_SERVER

This commit is contained in:
Juan Leyva
2014-10-22 13:23:19 +02:00
parent e4fe4fdabe
commit 8fa84ae035
+1 -5
View File
@@ -931,11 +931,7 @@ class moodle_page {
} else {
// We do not want devs to do weird switching of context levels on the fly because we might have used
// the context already such as in text filter in page title.
// This is explicitly allowed for webservices though which may
// call "external_api::validate_context on many contexts in a single request.
if (!WS_SERVER) {
debugging("Coding problem: unsupported modification of PAGE->context from {$current} to {$context->contextlevel}");
}
debugging("Coding problem: unsupported modification of PAGE->context from {$current} to {$context->contextlevel}");
}
}