MDL-17845 moved blocks code from /blocks/db/* to core

This commit is contained in:
skodak
2009-01-10 22:01:20 +00:00
parent ab2eb65c88
commit 704f4cdb7a
3 changed files with 81 additions and 142 deletions
+5
View File
@@ -143,6 +143,11 @@ function mnet_get_functions($type, $parentname) {
function upgrade_RPC_functions($returnurl) {
global $CFG;
// TODO: rewrite this thing so that it:
// 1/ does not include half the world
// 2/ returns status if something upgraded - needed for proper conitnue button
// 3/ upgrade functions in general should not use normal function calls to moodle core and modules
$basedir = $CFG->dirroot.'/mod';
if (file_exists($basedir) && filetype($basedir) == 'dir') {
$dirhandle = opendir($basedir);