OSDN Git Service

fix $currentTemplateName
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 29 Nov 2006 06:07:53 +0000 (06:07 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 29 Nov 2006 06:07:53 +0000 (06:07 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@507 1ca29b6e-896d-4ea0-84a5-967f57386b96

trunk/NP_TagEX/NP_TagEX.php

index fadc7bf..bc705eb 100644 (file)
@@ -56,7 +56,7 @@ class NP_TagEX extends NucleusPlugin
        }
        function getVersion()
        {
-               return '0.5';
+               return '0.51';
        }
        function getDescription()
        {
@@ -190,12 +190,14 @@ class NP_TagEX extends NucleusPlugin
        {
 // Hightlight tags
                global $currentTemplateName;
-               $currentTemplateName = $this->quote_smart($currentTemplateName);
+//             $currentTemplateName = $this->quote_smart($currentTemplateName);
+               $currTemplateName    = $this->quote_smart($currentTemplateName);
                $templateDescTable   = sql_table('template_desc');
                $q_query             = 'SELECT tddesc as result '
                                                         . 'FROM %s '
                                                         . 'WHERE tdname = %s';
-               $q_query             = sprintf($q_query, $templateDescTable, $currentTemplateName);
+//             $q_query             = sprintf($q_query, $templateDescTable, $currentTemplateName);
+               $q_query             = sprintf($q_query, $templateDescTable, $currTemplateName);
                $currentTemplateDesc = quickQuery($q_query);
                if (eregi('<highlightTagsAll>', $currentTemplateDesc)) {
                        $tags = $this->scanExistTags(0, 99999999);
@@ -1370,4 +1372,4 @@ tagIndexSeparator
                }
        }
 
-}
\ No newline at end of file
+}