From e774b723d77110b3101910a2cdda590cfcd34fee Mon Sep 17 00:00:00 2001 From: cepa Date: Sun, 23 Jun 2013 11:47:56 +0200 Subject: [PATCH] fix php notice already defined --- smartypants.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/smartypants.php b/smartypants.php index 0ab2beb..deee9d9 100644 --- a/smartypants.php +++ b/smartypants.php @@ -12,7 +12,7 @@ # -define( 'SMARTYPANTS_VERSION', "1.5.1f" ); # Unreleased +defined( 'SMARTYPANTS_VERSION' ) || define( 'SMARTYPANTS_VERSION', "1.5.1f" ); # Unreleased # @@ -23,16 +23,16 @@ # 3 -> "--" for em-dashes; "---" for en-dashes # See docs for more configuration options. # -define( 'SMARTYPANTS_ATTR', 1 ); +defined( 'SMARTYPANTS_ATTR' ) || define( 'SMARTYPANTS_ATTR', 1 ); # SmartyPants will not alter the content of these tags: -define( 'SMARTYPANTS_TAGS_TO_SKIP', 'pre|code|kbd|script|style|math'); +defined( 'SMARTYPANTS_TAGS_TO_SKIP' ) || define( 'SMARTYPANTS_TAGS_TO_SKIP', 'pre|code|kbd|script|style|math'); ### Standard Function Interface ### -define( 'SMARTYPANTS_PARSER_CLASS', 'SmartyPants_Parser' ); +defined( 'SMARTYPANTS_PARSER_CLASS' ) || define( 'SMARTYPANTS_PARSER_CLASS', 'SmartyPants_Parser' ); function SmartyPants($text, $attr = SMARTYPANTS_ATTR) { # @@ -760,4 +760,4 @@ function when loaded simultanously. possibility of such damage. */ -?> \ No newline at end of file +?>