Skip to content
Snippets Groups Projects
Commit 71ebc760 authored by Mantas Mikulėnas's avatar Mantas Mikulėnas
Browse files

Avoid PHP warnings about redefining constants

parent a67bc294
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,13 @@ ...@@ -3,8 +3,13 @@
* This file provides translations from the schac namespace to the old, deprecated namespace provided by TERENA. * This file provides translations from the schac namespace to the old, deprecated namespace provided by TERENA.
*/ */
define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:'); if (!defined('SCHAC_OLD_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:'); define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
}
if (!defined('SCHAC_NEW_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
}
$attributemap = array( $attributemap = array(
SCHAC_NEW_NS.'schacCountryOfCitizenship' => SCHAC_OLD_NS.'schacCountryOfCitizenship', SCHAC_NEW_NS.'schacCountryOfCitizenship' => SCHAC_OLD_NS.'schacCountryOfCitizenship',
......
...@@ -3,8 +3,13 @@ ...@@ -3,8 +3,13 @@
* This file provides translations from the deprecated schac namespace provided by TERENA, to the new namespace. * This file provides translations from the deprecated schac namespace provided by TERENA, to the new namespace.
*/ */
define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:'); if (!defined('SCHAC_OLD_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:'); define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
}
if (!defined('SCHAC_NEW_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
}
$attributemap = array( $attributemap = array(
SCHAC_OLD_NS.'schacCountryOfCitizenship' => SCHAC_NEW_NS.'schacCountryOfCitizenship', SCHAC_OLD_NS.'schacCountryOfCitizenship' => SCHAC_NEW_NS.'schacCountryOfCitizenship',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment