mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
moodle_page: MDL-12212 eliminate the two different interpretations of
pagetype
This commit is contained in:
parent
d529807a65
commit
e88462a055
9 changed files with 39 additions and 11 deletions
|
@ -902,7 +902,7 @@ function blocks_get_by_page_pinned($page) {
|
|||
function blocks_get_by_page($page) {
|
||||
global $DB;
|
||||
|
||||
$blocks = $DB->get_records_select('block_instance', "pageid = ? AND pagetype = ?",
|
||||
$blocks = $DB->get_records_select('block_instance', "pageid = ? AND ? LIKE (" . $DB->sql_concat('pagetype', "'%'") . ")",
|
||||
array($page->get_id(), $page->pagetype), 'position, weight');
|
||||
|
||||
$positions = $page->blocks_get_positions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue