skodak
bfdaa44ab3
MDL-14599 removed support for old $CFG->dbtype.php upgrade and install support for blocks
2008-05-01 20:04:42 +00:00
dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
mjollnir_
2f13f94ccc
New feature: Command line installer. Credit: Dilan Anurudda.
...
This was a Google Summer of Code 2007 Project.
This introduces two new files, admin/cliupgrader.php and lib/installlib.php.
It also introduces a new PEAR library, Console_GetOpt. I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) - notes in lib/pear.
Most stuff that outputs html during install gets suppressed by the use of a constant.
Run the script like php admin/cliupgrade.php --help for info.
Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
2008-01-07 01:54:28 +00:00
stronk7
04c2d0db9d
Booleans are not always transformed to 0 /1. This was preventing install
...
under mysqli. Define block->multiple if needed.
Merged from MOODLE_19_STABLE
2007-10-19 17:53:23 +00:00
jmg324
f359b6121c
MDL-11159 adding a name to block config form for javascript support
2007-09-07 14:49:30 +00:00
nicolasconnault
0be6f67819
MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site.
2007-08-17 19:09:11 +00:00
moodler
6b726eb486
Just fixed some notices and formatting while debugging other stufff
2007-08-15 09:25:27 +00:00
stronk7
afd1ec0223
Now the block->cron attribute is updated in the block table both
...
at install and upgrade (previously it was set only at install).
Plus general cleanup of whitespace.
2007-07-30 23:31:17 +00:00
toyomoyo
6ad71d66c8
merged fix for MDL-10445, adding of blocks on user blog page not possible
2007-07-19 06:06:28 +00:00
jmg324
282c169549
MDL-9802 added my:manageblocks capability so admins can define whether users can add/remove blocks from myMoodle page
2007-05-18 11:57:46 +00:00
toyomoyo
0856223c50
mechanism to install events
2007-04-19 08:45:30 +00:00
nicolasconnault
5db0cffcf6
MDL-8922: Had to modify another bunch of files to fix a simple problem:
...
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).
2007-03-26 03:06:45 +00:00
nicolasconnault
4d0ccfa7de
MDL-8922 More work on fixing RSS block XHTML
2007-03-23 08:01:01 +00:00
toyomoyo
217a8ee950
made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers.
2007-02-16 07:57:19 +00:00
skodak
371a32e308
(MDL-8250) install/upgrade autopilot
2007-01-22 20:15:12 +00:00
skodak
acdd790f74
print_footer('none') during install and upgrade to hide home link and xhtml strict fixes
2007-01-15 19:16:29 +00:00
martinlanghoff
b776b27738
db upgrades are now XHTML-correct -- at least when they succeed! With this patch, 1.8 installation completes correctly
2007-01-04 01:07:35 +00:00
sam_marshall
7fa944ca85
MDL-7805 Block instance_delete was not called
2006-12-05 17:46:39 +00:00
toyomoyo
c5d883fcfb
merged fixed a warning
2006-11-24 02:04:48 +00:00
vyshane
29ca8b882d
Merged from 1.7.
2006-11-16 03:28:09 +00:00
vyshane
d23157d82f
Merged from 1.7
2006-11-15 03:31:28 +00:00
stronk7
32ac847351
New block upgrade functions must be called:
...
xmldb_block_BLOCKNAME_upgrade()
Part of MDL-6786, just for consistency. Merged from MOODLE_17_STABLE
2006-10-15 23:04:06 +00:00
nfreear
1bece9174c
Fixes bug, "Warning: Invalid argument supplied for foreach() in /var/www/html/ndf42/head/lib/blocklib.php on line 174"
2006-10-10 11:03:35 +00:00
cap2501
c4308cfa1b
Bug:MDL-6674
...
made changes to blocks_exeute_repositioning_atomic to fix some logic errors with shifting around the weight list
2006-10-10 02:06:51 +00:00
cap2501
77e65ff786
removed some debugging output accidently left in.
2006-10-08 20:23:30 +00:00
cap2501
e028ed34da
created blocks_execute_repositioning_atomic as an extension of blocks_execute_repositioning, the original did adjust the column that the block was coming from but it did not insert it properly into the target column (adjusting the weights of the other blocks). This is currently only really nessicary for the ajax formats.
2006-10-08 20:21:15 +00:00
skodak
8ad2207965
fixed Fatal error: Call to undefined function: print_recent_activity() when adding Recent Activity as a sticky block MDL-6437 and blocks block database MDL-5931
2006-09-30 21:02:09 +00:00
stronk7
db8bd7a66f
Now XMLDB installation is enabled! Old mysql.php and postgres7.php can
...
continue being used as previously until we finish all the required
DDL functions.
Also, this implies that *.sql files aren't needed anymore. Now all we have to do
is to maintain the install.xml files from the editor.
2006-09-20 22:36:21 +00:00
vyshane
48f6bcddd2
Fix for blocks capability updates. Somehow missed this commit last night.
2006-09-13 04:08:58 +00:00
vyshane
f7cf2f8efd
Fixed bug preventing capability upgrades for blocks. Typo :(
2006-09-12 08:25:03 +00:00
skodak
b1631fef28
add admin_tree to front page during install and upgrade
2006-09-03 18:37:41 +00:00
skodak
e9a207595c
allow deleting of block when original code not present
2006-09-03 17:46:27 +00:00
skodak
02cc05a708
fixes for new admin blocks
2006-09-02 23:55:56 +00:00
stronk7
17c9113752
This condition was preventing new installs sometimes
2006-08-31 22:42:04 +00:00
stronk7
790647b950
Block plugin tables can use the XMLDB install & upgrade
2006-08-31 00:02:06 +00:00
stronk7
1164af7cf5
Block core blocks tables can use the XMLDB install & upgrade
2006-08-30 23:18:29 +00:00
cap2501
4a1a14c9d3
added nessicary code for ajax course format
2006-08-28 02:06:04 +00:00
moodler
0a0bb38019
Ed Coyne's AJAX course format, with some cleanups done.
...
More cleanups to come from Ed.
This isn't actually working for me right now but he'll fix it now.
This is completely optional and won't affect any other code right now.
2006-08-24 03:20:37 +00:00
skodak
dedb2304cd
upgrade logging cleanup, fixes - more improvements ahead
2006-08-17 22:37:34 +00:00
skodak
8549af11d1
fixed upgrade success notification, backup and blocks success messages are not red anymore...
2006-08-14 08:37:19 +00:00
moodler
f10306b9e2
Removed tabs
2006-08-09 14:00:51 +00:00
moodler
bbbf2d4015
ROLES AND PERMISSIONS - FIRST CHECK-IN
...
=======================================
WARNING: DEV IS CURRENTLY VERY UNSTABLE.
This is a mega-checkin of the new Roles system. A lot of changes have
been made in core and modules.
Currently there are a lot of rough edges and known problems. We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).
Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak
583fad994c
Bug #5352 - upgrade might be interrupted by user - upgrades are now logged into moddata/upgradelogs/, user abor is ignored and concurrent running of upgrades is prevented from one browser
2006-08-01 07:46:19 +00:00
sam_marshall
44c55d4662
Added hooks so that blocks can create functions that are run when they are installed and uninstalled. The base implementation does nothing.
2006-07-14 11:17:46 +00:00
tjhunt
a36f058e53
Bug 6101 - Automatically scroll to any errors when upgrading the database. JavaScript thanks to Andrew Walker. PHP changes are my fault.
2006-07-13 09:48:56 +00:00
tjhunt
b1a308bee0
Merge from 1.6 branch.
2006-05-17 11:38:34 +00:00
martinlanghoff
66c7e47b27
blocklib: cache (and used cached) block instances properly in $pageblocks
...
Now blocks_have_content() caches instantiated block objects inside $pageblocks
and blocks_print_blocks() uses them if available. This behaviour now matches
the documentation: blocks instances are created only once, get_content()
may be invoked several times.
A better fix would be to cache the _output_ of the block (the ->content
property) but it may bite us if any block is counting on being called twice.
Discussion at: http://moodle.org/mod/forum/discuss.php?d=45867
2006-05-17 04:39:43 +00:00
stronk7
f809df70ce
Avoided some notices when one block has been deleted from moodle/blocks
...
and from blocks admin page and their instances haven't been deleted.
We should build some sort of check to do all the house-cleaning of "orphaned"
blocks, perhaps each time we arrive to the blocks admin page.
2006-04-24 15:01:35 +00:00
vyshane
a2c28054b8
Added $CFG->pagepath to the blocks_execute_action() function for the config
...
action. This is used to generate the Moodle Docs URL for configuration of an
instance of a block.
2006-03-16 04:55:43 +00:00
mjollnir_
f9648e77cf
Added cron support for blocks - it was already there in the tables, now we just need to use it
2006-02-14 03:24:08 +00:00