didou           Wed Mar 17 12:37:20 2004 EDT

  Modified files:              
    /livedocs   mkindex.php 
  Log:
  make sure we're fetching the title
  # actually Stig was a title when parsin peardoc/en/chapters/intro.xml :)
  
http://cvs.php.net/diff.php/livedocs/mkindex.php?r1=1.23&r2=1.24&ty=u
Index: livedocs/mkindex.php
diff -u livedocs/mkindex.php:1.23 livedocs/mkindex.php:1.24
--- livedocs/mkindex.php:1.23   Wed Mar 17 09:05:56 2004
+++ livedocs/mkindex.php        Wed Mar 17 12:37:20 2004
@@ -19,7 +19,7 @@
 // | construct an index                                                   |
 // +----------------------------------------------------------------------+
 //
-// $Id: mkindex.php,v 1.23 2004/03/17 14:05:56 didou Exp $
+// $Id: mkindex.php,v 1.24 2004/03/17 17:37:20 didou Exp $
 
 
 /* just to be on the safe side */
@@ -90,7 +90,7 @@
        }
 
        function end_elem($parser, $name) {
-               if ($this->last_id !== false) {
+               if ($this->last_id !== false && $name == 'TITLE') {
                        echo "\tAdded ID {$this->last_id}\n";
 
                        $this->data .= "INSERT INTO idents VALUES ('{$this->last_id}', 
{$this->fileid}, '" . sqlite_escape_string(trim($this->cdata)) . "');";

Reply via email to