12 Commits

Author SHA1 Message Date
patrickslee
4e980e5a92 Mass cleanup of bad postgres upgrade scripts(merged from 15_stable) 2005-08-15 23:17:58 +00:00
patrickslee
dbbbb588a3 Fixed a bug in postgres block upgrade script messing up with block ids (Merged from 15_STABLE) 2005-08-10 05:31:46 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
defacer
1654796815 The final touch for block robustness: when upgrading from 1.4, intercept
and disable any incompatible blocks. Print a notice too.

These blocks won't ever be displayed because they are hidden, and the admin
cannot even unhide them until they are fixed because the blocks admin page
won't list them (it will emit a notice instead). Case closed.
2005-04-30 03:25:28 +00:00
defacer
658f6a9ce3 Fix for bug 2711:
Blocks upgrade no longer breaks in Postgres. Also, a "hell why not"
robustness addition to the MySQL upgrade.
2005-03-10 22:48:29 +00:00
mjollnir_
1e62c63b3f Fix for bug 2660 - postgres upgrade breaking mdl_block sequence 2005-03-01 23:39:56 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
defacer
c8e0b57900 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.
2004-11-12 18:39:25 +00:00
paca70
1b2a38043b Theres no enums in postgresql 7.x. Fix for this. 2004-10-31 14:36:35 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
moodler
e02c35b2ae Merged block upgrade fix from stable 2004-08-30 16:26:00 +00:00
paca70
ce24161b7e First versions for postgressql 2004-04-19 04:15:24 +00:00