Commit graph

249 commits

Author SHA1 Message Date
skodak
27bd819be5 MDL-17848 oops, yet more cron compatibility fixes for console_write() ;-) I have added a new console_write_error() too 2009-01-10 20:44:45 +00:00
tjhunt
19f5b2dbee accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page. 2009-01-09 06:16:36 +00:00
mjollnir_
ee1efe0b0f MDL-17694: very small stickyblocks improvements (Merged from MOODLE_19_STABLE) 2008-12-19 09:49:33 +00:00
skodak
775f811a66 MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes 2008-08-16 12:16:01 +00:00
tjhunt
552adc27d7 XHTML strrrict! 2008-08-12 04:11:36 +00:00
moodler
120b375891 MDL-10107 Fixed the definition of message providers ... it now works through files very similar to those for events and capabilities, which makes them easy to add/remove/change as necessary 2008-07-31 08:01:46 +00:00
dongsheng
74fd9ff9db "MDL-15501, typo, sorry" 2008-07-02 05:12:51 +00:00
dongsheng
303fe9f484 "MDL-15501, add appropriate div and h2 tags to the header div, merged from MOODLE_19_STABLE" 2008-07-02 05:02:46 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
655b09ca8a MDL-15117 wiki converted and other regressions fixed 2008-06-04 21:34:14 +00:00
skodak
8618fd2aeb MDL-14679 converted some delete_records 2008-06-02 21:52:27 +00:00
skodak
7e0489f4e1 MDL-14679 fixed regression 2008-05-31 15:38:38 +00:00
skodak
58ff964fe9 MDL-14679 finished blocklib conversion 2008-05-30 20:23:27 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
dongsheng
e49ef64a2e "MDL-14129, fix print_error" 2008-05-15 03:07:21 +00:00
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