Pages/blocks code updates:
NEW: The code now supports dynamically plugging your own Pages and block position identifiers into Moodle without messing with the main libraries at all. UPDATE: Many functions in blocklib now use pass-by-reference for speed. UPDATE: Class MoodlePage has been made more presentable and robust.
This commit is contained in:
@@ -119,6 +119,11 @@ global $CFG;
|
||||
execute_sql("ALTER TABLE {$CFG->prefix}course DROP COLUMN blockinfo");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004112900 && $result) {
|
||||
$result = $result && table_column('block_instance', 'pagetype', 'pagetype', 'varchar', '20', '');
|
||||
$result = $result && table_column('block_instance', 'position', 'position', 'varchar', '10', '');
|
||||
}
|
||||
|
||||
//Finally, return result
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user