mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fixed hardcoded prefixes in wiki table names
This commit is contained in:
parent
1fa894b374
commit
e22465c7bf
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user