177 Commits

Author SHA1 Message Date
tjhunt
feed19003c blocks: MDL-19010 Fix, or prevent being executed, all references to blocks_insance_old inside blocklib.php 2009-05-07 09:16:22 +00:00
tjhunt
f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt
9d1d606e0d blocklib: MDL-19010 fix new install.
* Fix the blocks bit of build_context_path
* Replace blocks_repopulate_page
* Make starting_output work during setup
2009-05-07 07:05:22 +00:00
tjhunt
d19e819597 blocklib: MDL-19010 move the check for whether the right database tables exist to a place where it is better encapsulated. 2009-05-07 02:56:48 +00:00
tjhunt
f2c6739c39 blocklib: MDL-19010 rename $position -> $region throughout blocklib.php 2009-05-06 09:27:02 +00:00
tjhunt
6bf44482c6 pagelib: MDL-12212 eliminate quiz_page 2009-05-06 09:24:45 +00:00
tjhunt
1b6b940022 moodle_page: MDL-12212 eliminate page_my_moodle 2009-05-06 09:23:37 +00:00
tjhunt
bb46a4fa2a blocklib: MDL-19010 refactor blocklib to use block_manager to get the blocks for rendering 2009-05-06 09:15:05 +00:00
tjhunt
08eab89703 blocklib: MDL-19010 add block and get_blocks methods 2009-05-06 09:14:42 +00:00
tjhunt
86b5ea0f85 blocklib: MDL-19010 start of block_manager - get and set regions 2009-05-06 09:14:01 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +00:00
tjhunt
d7f688d46a moodle_page: MDL-12212 eliminate page::edit_always 2009-05-06 08:56:44 +00:00
tjhunt
ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt
ad5d5997ed moodle_page: MDL-12212 more ->pagepaths to kill 2009-05-06 08:43:51 +00:00
tjhunt
e88462a055 moodle_page: MDL-12212 eliminate the two different interpretations of
pagetype
2009-05-06 08:41:02 +00:00
tjhunt
d529807a65 moodle_page: MDL-12212 kill $CFG->pagepath (use $PAGE->set_pagetype)
deprecate $PAGE->get_format_name (use $PAGE->pagetype)
deprecate page_id_and_class (use $PAGE->pagetype)
2009-05-06 08:38:55 +00:00
tjhunt
cd2bc3c98a moodle_page: MDL-12212 rewrite blocks_name_allowed_in_format to improve readability 2009-05-06 08:36:50 +00:00
tjhunt
f230ce19ea moodle_page: MDL-12212 implement ->pagetype 2009-05-06 08:34:32 +00:00
tjhunt
e8c8cee99a blocklib: MDL-19010 add standard boilerplate at the top of the file. 2009-04-30 03:50:00 +00:00
skodak
795a08adb7 MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements 2009-01-31 20:07:32 +00:00
skodak
0cb93a7e45 MDL-17427 another round of refactoring of upgrade related functions - this should be final now I hope ;-) 2009-01-29 19:58:47 +00:00
skodak
1045a0074c MDL-17849 sql queries not printed by default during upgrade anymore, there is a new config.php only setting $CFG->upgradeshowsql instead 2009-01-12 16:52:53 +00:00
skodak
5c144d605e MDL-17845 now only one page per installs/upgrade :-D 2009-01-12 15:13:44 +00:00
skodak
3e46c66a5d MDL-17427 - removed old file based logging from ugprade - going to add new upgrade logging later 2009-01-11 10:18:53 +00:00
skodak
1caea91efb MDL-17457 moved a lot of code into lib/db/install.php + other refactoring and cleanup 2009-01-11 09:41:48 +00:00
skodak
704f4cdb7a MDL-17845 moved blocks code from /blocks/db/* to core 2009-01-10 22:01:20 +00:00
skodak
ab2eb65c88 MDL-17846 moved blocks code from /blocks/db/* to core 2009-01-10 21:06:53 +00:00
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