MDL-44106 add WS_SERVER constant to all web service calls

This will help us hack around some nasty webservice problems,
such as require_login() and it will be used to set proper 'ws' origin
in logged events.
This commit is contained in:
Petr Škoda
2014-03-20 17:28:01 +08:00
parent 9b8555fbea
commit e5d48aad44
10 changed files with 23 additions and 32 deletions
+1 -4
View File
@@ -28,10 +28,7 @@
*/
define('NO_DEBUG_DISPLAY', true);
/**
* NO_MOODLE_COOKIES - no cookies with web service
*/
define('NO_MOODLE_COOKIES', true);
define('WS_SERVER', true);
// Make sure OPcache does not strip comments, we need them for Zend!
if (ini_get('opcache.enable') and strtolower(ini_get('opcache.enable')) !== 'off') {