fixed hardcoded prefixes in wiki table names

This commit is contained in:
Petr Skoda 2010-10-27 08:11:21 +00:00
parent 1fa894b374
commit e22465c7bf

View File

@ -1341,8 +1341,8 @@ function wiki_get_linked_pages($pageid) {
global $DB;
$sql = "SELECT p.id, p.title
FROM mdl_wiki_pages p
JOIN mdl_wiki_links l ON l.topageid = p.id
FROM {wiki_pages} p
JOIN {wiki_links} l ON l.topageid = p.id
WHERE l.frompageid = ?
ORDER BY p.title ASC";
return $DB->get_records_sql($sql, array($pageid));