OSDN Git Service

Wait, it may-be incompatible about regex delimiter of $non_list
authorhenoheno <henoheno>
Sat, 8 Jan 2005 11:45:44 +0000 (20:45 +0900)
committerhenoheno <henoheno>
Sat, 8 Jan 2005 11:45:44 +0000 (20:45 +0900)
lib/html.php
plugin/touchgraph.inc.php

index c6d545a..a74eda5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: html.php,v 1.23 2005/01/08 11:20:08 henoheno Exp $
+// $Id: html.php,v 1.24 2005/01/08 11:45:44 henoheno Exp $
 //
 // HTML-publishing related functions
 
@@ -164,7 +164,7 @@ function edit_form($page, $postdata, $digest = 0, $b_template = TRUE)
 
        if($load_template_func && $b_template) {
                $pages  = array();
-               $non_list_pattern = '#' . $non_list . '#';
+               $non_list_pattern = '/' . $non_list . '/';
                foreach(get_existpages() as $_page) {
                        if ($_page == $whatsnew || preg_match($non_list_pattern, $_page))
                                continue;
@@ -242,7 +242,7 @@ function make_related($page, $tag = '')
        }
 
        $_links = array();
-       $non_list_pattern = '#' . $non_list . '#';
+       $non_list_pattern = '/' . $non_list . '/';
        foreach ($links as $page=>$lastmod) {
                if (preg_match($non_list_pattern, $page)) continue;
 
index 66314b7..499a2a0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: touchgraph.inc.php,v 1.7 2005/01/03 12:59:01 henoheno Exp $
+// $Id: touchgraph.inc.php,v 1.8 2005/01/08 11:45:44 henoheno Exp $
 //
 // Output an index for 'TouchGraph WikiBrowser'
 // http://www.touchgraph.com/
@@ -34,7 +34,7 @@ function plugin_touchgraph_rel()
 {
        global $non_list;
 
-       $non_list_pattern = '#' . $non_list . '#';
+       $non_list_pattern = '/' . $non_list . '/';
        foreach (get_existpages() as $page) {
                if (preg_match($non_list_pattern, $page)) continue;
 
@@ -56,7 +56,7 @@ function plugin_touchgraph_ref()
 {
        global $non_list;
  
-       $non_list_pattern = '#' . $non_list . '#';
+       $non_list_pattern = '/' . $non_list . '/';
        foreach (get_existpages() as $page) {
                if (preg_match($non_list_pattern, $page)) continue;