Last active
September 7, 2016 13:11
-
-
Save phenix-factory/eb4ceec5c5d38c22b584 to your computer and use it in GitHub Desktop.
SPIP: une balise pour lire les constantes PHP dans les squelettes SPIP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Balise spip pour lire les constantes PHP proprement | |
function balise_LIRE_CONSTANTE_dist($p) { | |
$constante = interprete_argument_balise(1, $p); | |
$p->code = "constant($constante)"; | |
$p->interdire_scripts = false; | |
return $p; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment