Index: wikitools.admin.inc =================================================================== --- wikitools.admin.inc (revision 178) +++ wikitools.admin.inc (working copy) @@ -151,12 +151,12 @@ $n1_title = 'n1.title'; $n2_title = 'n2.title'; if (wikitools_treat_underscore_as_space()) { - $n1_title = 'REPLACE('. $n1_title .', "_", " ")'; - $n2_title = 'REPLACE('. $n2_title .', "_", " ")'; + $n1_title = 'REPLACE('. $n1_title .', \'_\', \' \')'; + $n2_title = 'REPLACE('. $n2_title .', \'_\', \' \')'; } if (wikitools_treat_dash_as_space()) { - $n1_title = 'REPLACE('. $n1_title .', "-", " ")'; - $n2_title = 'REPLACE('. $n2_title .', "-", " ")'; + $n1_title = 'REPLACE('. $n1_title .', \'-\', \' \')'; + $n2_title = 'REPLACE('. $n2_title .', \'-\', \' \')'; } // Grab all nodes that have the same title