r1373 + made readChapter() treat Wiki syntax for all chapters read
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 7 Dec 2007 11:42:06 +0000 (11:42 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 7 Dec 2007 11:42:06 +0000 (11:42 +0000)
inc/database.php

index 87563a7889cff45e83c28d05fb151a3dd57d2f08..47546791da94cefda25cff4417f11d2a277fa1e7 100644 (file)
@@ -1537,7 +1537,12 @@ function readChapter ($chapter_name = '')
        }
        $chapter = array();
        while ($row = $result->fetch (PDO::FETCH_ASSOC))
-               $chapter[] = $row;
+       {
+               $word = array();
+               $word['dict_key'] = $row['dict_key'];
+               $word['dict_value'] = parseWikiLink ($row['dict_value'], 'o');
+               $chapter[] = $word;
+       }
        $result->closeCursor();
        return $chapter;
 }