OSDN Git Service

Corrected 1.54
[pukiwiki/pukiwiki.git] / plugin / ls.inc.php
index f34cef1..5328d4c 100644 (file)
@@ -5,23 +5,23 @@
  * CopyRight 2002 Y.MASUI GPL2
  * http://masui.net/pukiwiki/ masui@masui.net
  *
- * $Id: ls.inc.php,v 1.8 2003/06/10 14:02:16 arino Exp $
+ * $Id: ls.inc.php,v 1.9 2004/07/31 03:09:20 henoheno Exp $
  */
 
 function plugin_ls_convert()
 {
        global $vars;
-       
+
        $with_title = FALSE;
-       
+
        if (func_num_args())
        {
                $args = func_get_args();
                $with_title = in_array('title',$args);
        }
-       
+
        $prefix = $vars['page'].'/';
-       
+
        $pages = array();
        foreach (get_existpages() as $page)
        {
@@ -31,7 +31,7 @@ function plugin_ls_convert()
                }
        }
        natcasesort($pages);
-       
+
        $ls = array();
        foreach ($pages as $page)
        {
@@ -41,12 +41,12 @@ function plugin_ls_convert()
                        list($comment) = get_source($page);
                        // ¸«½Ð¤·¤Î¸ÇÍ­IDÉô¤òºï½ü
                        $comment = preg_replace('/^(\*{1,3}.*)\[#[A-Za-z][\w-]+\](.*)$/','$1$2',$comment);
-                       
+
                        $comment = '- ' . ereg_replace('^[-*]+','',$comment);
                }
                $ls[] = "-[[$page]] $comment";
        }
-       
+
        return convert_html($ls);
 }
 ?>