tjhunt
7544d13c28
MDL-19077 - re-fix the problem of exceptions being thrown in $OUTPUT->header
...
Also, fix lines theme.
2009-06-30 05:34:50 +00:00
tjhunt
c84a2dbea2
MDL-19077 - change how $OUTPUT is initialised.
...
Please read the comment at the top of bootstrap_renderer in setuplib.php
2009-06-29 05:00:45 +00:00
tjhunt
fd1a792e13
themes: MDL-19640 / MDL-19077 remove other references to _print_normal_error
2009-06-29 00:34:49 +00:00
tjhunt
34a2777ccb
themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
...
Also, part of the change from weblib.php functions to $OUTPUT-> methods.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F
This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.
The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.
A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.
All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
tjhunt
31a9987770
install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function.
2009-06-24 09:17:56 +00:00
skodak
1fbdf76ddb
MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions
2009-06-12 10:59:28 +00:00
samhemelryk
b37eac91cc
lib MDL-19236 Added boilerplates and copyrights
2009-05-26 03:57:03 +00:00
skodak
80e30f2594
MDL-12212 fixed missing globals
2009-05-17 17:07:54 +00:00
skodak
f630a546a6
fixed whitespace
2009-05-11 17:13:45 +00:00
skodak
8dc0ae8fe5
fixed typo
2009-05-11 17:11:29 +00:00
skodak
edaf04d489
MDL-16957 explain why our htaccess is intentionally broken; merged from MOODLE_19_STABLE
2009-05-08 21:30:56 +00:00
tjhunt
cce1b0b9ca
exceptions: MDL-16175 new invalid_state_exception
...
This is for those situations where something basically impossible happens,
like $context->contextlevel not having one of the valid value, and you
want to throw an exception (for example in the default: case of a switch)
rather than just ignoring the possibility.
2009-05-08 07:47:02 +00:00
tjhunt
0ae8f5fcb2
exceptions: MDL-16175 more careful decision whether to use _print_normal/early_error.
...
It is a mistake to use _print_normal_error if the exception was thrown in print_header - we don't want to try to call print_header again!
2009-05-07 05:38:35 +00:00
tjhunt
75781f879c
moodle_page: MDL-12212 ->url and cleanup init of $FULLME, etc.
2009-05-06 08:50:32 +00:00
dongsheng
7022dd3930
"MEMORY/MDL-18540,remove hard-coded php memory limit, added system setting for it, create a function reduce_memory_limit to reduce memroy limit and respect php.ini setting in the meanwhile, merged from 1.9"
2009-03-26 02:09:28 +00:00
stronk7
b10a14a392
MDL-18200 - fix make_upload_directory() was always failing on initial creation of dataroot
2009-02-11 15:26:29 +00:00
skodak
3b09331066
MDL-17458 rewritten installer
2009-02-07 10:20:33 +00:00
skodak
fbf2c91e43
MDL-10275 added fatal PHP config setting test on each page, replaces some tests done in installer
2009-02-01 13:37:42 +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
4d6d912a77
MDL-17853 fixed typo, thanks Nicolas Martignoni
2009-01-11 09:44:42 +00:00
skodak
84b88cfde7
MDL-11061 removed wwwroot tests from admin/index.php, now in setuplib.php
2009-01-07 15:31:54 +00:00
skodak
37ccf1fec9
MDL-17802 fixed wwwroot without any subdirectory issue
2009-01-07 09:54:09 +00:00
skodak
991ec2ee51
MDL-17777 fixed request string encoding in ISS
2009-01-06 12:33:32 +00:00
skodak
f1e715ff88
MDL-9276 reverse proxy and normal access can not be mixed - it would valiate the one address per moodle rule, sorry
2009-01-06 10:10:19 +00:00
skodak
21517960b3
MDL-17777 improved IIS rewrite rule
2009-01-05 22:32:15 +00:00
skodak
11e7b506ce
MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support
2009-01-05 21:37:20 +00:00
skodak
ce1526061c
MDL-17317 DML: more exceptions - now in connect too
2008-11-22 01:16:52 +00:00
skodak
9214025e3e
MDL-17129 basic dml exceptions
2008-11-04 21:50:13 +00:00
skodak
1fe1d10454
MDL-16930 dml: exceptions instead of print_error
2008-10-28 15:21:01 +00:00
skodak
655bbf511d
MDL-16669 dml: improved sql_substring(), added unit tests
2008-10-28 15:11:10 +00:00
skodak
5ca18631bc
MDL-16029 removing recently added support for $extralocation from print_error(), thanks TIm for pointing out this is not the recommended way anymore
2008-09-02 06:03:37 +00:00
skodak
c018fde2df
MDL-16029 Added $extralocations in the function print_error; merged from MOODLE_19_STABLE
2008-09-01 15:31:09 +00:00
skodak
04264aeda4
MDL-15343 mod upgrade savepoints implemented (the xmldb generator is not updated yet)
2008-06-22 23:35:52 +00:00
skodak
eee5d9bb85
MDL-14956 DDL exceptions
2008-06-22 16:51:55 +00:00
skodak
ab130a0b5f
MDL-15273 basic read/write perf counter in moodle_database
2008-06-16 21:01:54 +00:00
skodak
251387d087
MDL-14956 basic exception support in Moodle + other minor related refactoring
2008-06-13 17:51:34 +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
skodak
6a525ce289
MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski; merged from MOODLE_19_STABLE
2008-01-20 17:59:26 +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
aaa291bcb9
tidy up phpdoc
...
Merged from MOODLE_19_STABLE
2007-12-20 23:17:42 +00:00
stronk7
118e0116f3
Adding the new preconfigure_dbconnection() function
...
to pre-define some BD/ADOdb stuff before connection. MDL-12657
Merged from MOODLE_19_STABLE
2007-12-20 22:52:55 +00:00
stronk7
d4775d5495
Merging unmerged code. MDL-11743 and MDL-11671
2007-11-18 17:12:58 +00:00
skodak
03cedd6283
MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-)
2007-10-10 12:19:27 +00:00
nicolasconnault
6fc4ad7243
Almost completed the new profiling tool. Just a bit more tweaking :-)
2007-03-20 02:59:34 +00:00
nicolasconnault
b65567f455
Started adding enhanced profiling using APD.
2007-03-20 00:34:05 +00:00
stronk7
1d5c40048a
Moving set_dbfamily() from dmllib.php to setuplib.php as it's
...
needed in early stages and we don't want the installer to
depend of dmllib.
2007-01-13 10:44:58 +00:00
stronk7
bb48a53735
Some more uses of $CFG->dbfamily. MDL-7061
2007-01-13 00:09:02 +00:00
stronk7
c0fe837eeb
Adding support for mysqli. MDL-8113
2007-01-08 19:07:41 +00:00
martinlanghoff
f917d0ea9b
$MCACHE - rework memcached support - some rework on eaccelerator
...
We now have a wrapper memcached support class to handle
initial connection setup, provide the common denominator
calls, plus getforfill() and friends.
The eaccelerator class now returns false to match memcached. The
downside of this is that we cannot store booleans as a false value
is indistinguishable from a false that indicates error or 'key not
found'.
2006-12-27 22:47:51 +00:00
martinlanghoff
2142d4924f
$MACHE: add support for eaccelerator/memcached, change the $MCACHE calling convention a bit
...
- this effectively breaks memcached support for the moment
2006-12-27 22:47:14 +00:00