Fix PHP_SELF and register_global on project approval

Signed-off-by: Nicolas Terray <nicolas.terray@enalean.com>

Change-Id: I2324f05f0ddf1352c1b750db7e7e3ca2ac5f0e5a
Merge commit 'refs/changes/85/385/2' of http://gerrit.tuleap.net/tuleap into stable

* http://gerrit.tuleap.net/tuleap:
  Fix PHP_SELF and register_global on project approval
This is Tuleap 5.12.99.36