projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a954f
)
r1373 + made readChapter() treat Wiki syntax for all chapters read
author
Denis Ovsienko
<infrastation@yandex.ru>
Fri, 7 Dec 2007 11:42:06 +0000
(11:42 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Fri, 7 Dec 2007 11:42:06 +0000
(11:42 +0000)
inc/database.php
patch
|
blob
|
blame
|
history
diff --git
a/inc/database.php
b/inc/database.php
index 87563a7889cff45e83c28d05fb151a3dd57d2f08..47546791da94cefda25cff4417f11d2a277fa1e7 100644
(file)
--- a/
inc/database.php
+++ b/
inc/database.php
@@
-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;
}