Hi there,
on saving this context plug in:
<?php
switch ($modx->getOption(’http_host’)) {
case ’domain2.tld:80’:
case ’domain2.tld’:
// if the http_host is of a specific domain, switch the context
$modx->switchContext(’domain2.tld’);
break;
default:
// by default, don’t do anything
break;
}
?>
The last "?>" is being stripped. To make matters more confusing, this error is only visible when the plug in is reloaded - the "save" function does not show the last tagged to have been stripped on save.
I’ve tried this on two separate installs, but both are on my server, so it might be worth someone else checking before I file as a bug.
(Environment: Operating system Linux i686 / MySQL version 5.0.91-community / Apache version 2.2.17 /PHP 5.2.17; browsers tried: Safari and Camino)