8449 Commits

Author SHA1 Message Date
stronk7
38d0db9f31 Concatenating NULLs with anything returns NULL 2009-08-30 20:53:12 +00:00
stronk7
71a71d591b Added more sql_concat tests. MySQL and PG broken :-( Fix coming soon. 2009-08-30 16:01:31 +00:00
skodak
459e384ef2 MDL-14632 fixed forbidden use of Call-time pass-by-reference 2009-08-29 11:15:27 +00:00
stronk7
f906838a4e Added some more tests to temp tables to show current implementation problems in mysql and mssql. Fix coming soon. 2009-08-29 01:17:57 +00:00
stronk7
e4a16bdc88 Delegate prefix subtitution to each db driver to enforce calls to fix_sql_params() everywhere 2009-08-29 00:08:55 +00:00
stronk7
0f887b881e Delete the tweakTempTable() thing used to support temp tables in mssql.
Was hacky and incomplete. Proper solution must be mssql exclusive.
2009-08-28 17:30:18 +00:00
nicolasconnault
21237187fb MDL-19756 Removing badly merged line :p 2009-08-28 12:45:50 +00:00
nicolasconnault
a019627a1a MDL-19756 Fixed bug in output of fields with a label 2009-08-28 11:38:33 +00:00
mudrd8mz
46c6731707 NOBUG: fixed incorect use of $output variable
I propose to use $output variable name for renderer instance only. Also,
this did not work at all as $output was not returned.
2009-08-28 11:34:01 +00:00
stronk7
77abbc47f6 Enforce strict mode in mysqli session in order to get consistent behaviour
in various operations (casting, altering columns...)
2009-08-28 11:17:47 +00:00
nicolasconnault
c1c0cecf3a MDL-14632 Improved the output code of the settings block and fixed typo of toogle to toggle. 2009-08-28 10:28:16 +00:00
samhemelryk
7d2a049292 navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
2009-08-28 08:47:31 +00:00
nicolasconnault
1f1aa44525 MDL-19756 Corrected an incorrect default text for the "cancel" button of a confirm dialog 2009-08-28 08:00:15 +00:00
jerome
ebcc6bd3b5 webservices MDL-12886 "params" parameter has been changed into an object (conform with the web description structure) + clean_params() function filters parameters and throws an exception for any unexpected parameters/malformed parameters 2009-08-28 07:03:03 +00:00
nicolasconnault
319770d747 MDL-19797 Upgraded most output code in grader report 2009-08-28 05:29:05 +00:00
stronk7
c402af03a8 To alter columns back and forth between numeric types and text,
we need upto 3 intermediate alters.
Corolary: MSSQL implicit conversions aren't transitive at all! :-)
2009-08-28 01:19:49 +00:00
stronk7
eb8f775d97 Fix one wrong test. To get defaults applied, new column must be not null. 2009-08-28 01:14:32 +00:00
skodak
d4b5bd4393 MDL-20169 fixed coding style, parameter type required 2009-08-27 19:20:03 +00:00
skodak
92ebcabeb3 MDL-20169 fixed coding style, parameter type required 2009-08-27 19:14:45 +00:00
skodak
622365d2e1 MDL-20169 fixed coding style, parameter type required 2009-08-27 18:37:53 +00:00
stronk7
76b6daf2b2 NOBUG. Add 2 missing fix_sql_params() calls in insert/update_record_raw()
causing named and qm parameters to be mixed in the same query. Curiously,
due to the ordered nature of the qms it wasn't breaking, but was incorrect.
2009-08-27 14:01:28 +00:00
nicolasconnault
5529f787bd MDL-19797 Added callback support to the confirm_dialog function, and to the add_confirm_action() method 2009-08-27 10:12:44 +00:00
poltawski
7e13a2654a lib/setuplib MDL-20166 - Don't abort install on nginx webserver
Thanks to Jordan for the patch. Jordan has done testing and found nginx
seems to work and is planning to do more extensive testing to alert us of
other problems along the way.
2009-08-27 07:52:11 +00:00
nicolasconnault
9c48f05caf MDL-19799 Silencing annoying debugging error for popup_form use 2009-08-27 06:38:17 +00:00
stronk7
e871fb87bb workarround MSSQL (RDBMS) bug with float types. Not important as far as
we don't use floats within Moodle, but XMLDB layer supports them.
2009-08-25 21:06:14 +00:00
stronk7
0e4a719b15 fix sql_substr() behaviour 2009-08-25 20:39:00 +00:00
tjhunt
2c5ec833bc outputlib MDL-20103 neater version of Jerome's fix. 2009-08-25 19:09:04 +00:00
stronk7
d60a7bc20f Buggy ADOdb was returning PKs in the list of indexes. Look for it in information schema and extract from results. 2009-08-25 18:52:36 +00:00
stronk7
2ef655beac Fix get_columns() for mssql adodb driver by custom-implementing it.
This implementation should be the used one in native drivers.
2009-08-25 17:41:10 +00:00
nicolasconnault
54a007e8f6 MDL-19797 Optimising output code for the Edit grades categories and items interface 2009-08-25 07:31:13 +00:00
jerome
fbe52a393f webservice MDL-12886 refactor web service description + implement clean_function_params() function 2009-08-25 05:35:59 +00:00
nicolasconnault
1c1f64a2a6 MDL-19797 Optimising output code and JS/CSS requires. Also improved CSS for grader report 2009-08-24 15:10:36 +00:00
poltawski
d836aa4b4f lib/blocklib: MDL-20146 - Don't mask errors as a way to ignore missing code files
Instead of simply ignoring all errors from blocks, allow the errors to be
exposed and test if the file exists. The previous solution makes it very
hard to debug problems with blocks and gives the 'white screen of death' even
with debugging set as high as it can go.

Also ensure that blocks without code are not added to the list of instances,
as I assume was the intended behaviour.
2009-08-22 11:24:39 +00:00
nicolasconnault
12f11f232a MDL-19799 Switched $_helpbutton to public members 2009-08-21 00:15:19 +00:00
nicolasconnault
3bd6b994fc MDL-19799 Upgraded calls to link_to_popup_window() 2009-08-20 13:18:08 +00:00
nicolasconnault
642816a60c MDL-19799 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:50:50 +00:00
nicolasconnault
7755599dfe MDL-19756 Added new output files to code coverage arrays 2009-08-20 03:03:51 +00:00
stronk7
338c94e27c Adding support for T_ABSTRACT token in PHP code coverage parser 2009-08-19 21:44:24 +00:00
nicolasconnault
aa9a686740 MDL-19799 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:20:12 +00:00
nicolasconnault
54b1669246 MDL-19799 Upgraded calls to choose_from_menu 2009-08-18 00:18:19 +00:00
nicolasconnault
4f4eda4017 MDL-19756 Fixed a debugging message. Thanks Petr! 2009-08-17 09:54:49 +00:00
nicolasconnault
db49be139d MDL-19756 Added the component::has_action() method for quickly detecting if a component has an action of a given type, and unmuted debugging messages for old output functions that have been upgraded in HEAD 2009-08-17 07:00:16 +00:00
jerome
d0b7a11f43 outputlib MDL-20103 fix php NOTICE when content has no assigned icon 2009-08-17 03:38:19 +00:00
dongsheng
d5a772f5dc "MDL-16697, remove debug code" 2009-08-16 04:26:24 +00:00
dongsheng
da964d222b "MDL-19118, simplify json parsing in commenting module" 2009-08-16 04:21:30 +00:00
dongsheng
d25e2ca3f7 "MDL-13766, move common functions to javascript-static.js" 2009-08-16 04:14:46 +00:00
dongsheng
7a0c240306 "MDL-16697, fixed parameters" 2009-08-16 03:46:15 +00:00
dongsheng
63bfcc8f60 "MDL-16697, remove debug code" 2009-08-14 08:23:03 +00:00
dongsheng
dd07016297 "MDL-16697, rename callback functions" 2009-08-14 08:22:06 +00:00
dongsheng
2b20173965 "MDL-16697, update javascript parameters list" 2009-08-14 07:37:56 +00:00