Commit Graph

24767 Commits

Author SHA1 Message Date
toyomoyo d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
moodler d4649c76cc Removed some tabs 2006-09-06 01:43:54 +00:00
skodak c3768dfc70 testing forced conversion to proper numeric type in _adodb_column_sql() SC#259 2006-09-05 23:59:25 +00:00
stronk7 3c4f35e645 Mark as deprecated the sql_paging_limit_function() 2006-09-05 21:42:20 +00:00
stronk7 93a89227fd One less use of old LIMIT clause. Now logs are working properly. 2006-09-05 21:40:17 +00:00
skodak dbe7e58274 I spent 2 hours looking for this typo :-D 2006-09-05 20:45:57 +00:00
stronk7 5de6e614d4 No need to specify DISTINCT because u.* guarantees unique ids.
Also, DISTINCT clauses cannot be used with TEXT/BINARY columns
on MSSQL and Oracle.
2006-09-05 19:04:33 +00:00
stronk7 405bc45cf6 No need to specify DISTINCT because u.* guaranties distinct by id. 2006-09-05 19:01:41 +00:00
stronk7 0441764040 Changed the get_users_by_capability() function to work with
1.7 DB compatible limit sentences.
2006-09-05 18:55:16 +00:00
stronk7 3c242a66f5 Now get_records_sql() supports limitfrom and limitnum.
Required to kill all those hardcoded LIMIT x,y clauses.
2006-09-05 18:53:08 +00:00
stronk7 e4697bf7dc Both Oracle and MSSQL don't like double quotes for literals. 2006-09-05 18:06:53 +00:00
stronk7 415280bfc3 Added the adodb_logsql table to the XMLDB schema. It's a bit
exceptional because it hasn't prefix and originaly it hasn't
any PK, although we have added it here to be more Moodle-like.
Tested and seems to work properly with the new field.
2006-09-05 17:20:24 +00:00
stronk7 2e2a396ca3 Added to the generators the ability of prevent adding prefix for some tables.
(needed by adodb_logsql)
2006-09-05 17:17:49 +00:00
stronk7 ea7f147ef5 Now the sessions2 table is UTF8 migrated ok. 2006-09-05 16:04:50 +00:00
moodler 957861f785 Better robustness and basic checking for get_parent_contexts 2006-09-05 09:30:40 +00:00
toyomoyo 3924b9884b adding capabilities 2006-09-05 08:50:23 +00:00
moodler 91be52d78e Get the block name correctly 2006-09-05 06:30:12 +00:00
moodler 61647ccb92 Use the defaultsetting if the variable isn't set yet 2006-09-05 03:27:08 +00:00
moodler 75e8eaebe7 Merged MDL-6431 into HEAD 2006-09-05 03:15:09 +00:00
vyshane 4729012f4c Fixed warning 2006-09-05 03:07:56 +00:00
cap2501 c572cc4dc6 updates to accommodate changes to commands.php 2006-09-05 00:50:08 +00:00
stronk7 95f610334e Mark two functions as deprecated because that's standard now. 2006-09-04 22:40:42 +00:00
stronk7 fda5418401 $CFG required. 2006-09-04 22:30:56 +00:00
stronk7 010f2a3977 Typo! :-( 2006-09-04 22:17:28 +00:00
stronk7 bf05229983 MSSQL only runs under UTF8 (with the correct ODBTP driver, of course) 2006-09-04 22:16:30 +00:00
stronk7 94ef00f3bb MSSQL and Oracle don't want DISTINCT clauses over TEXT/BINARY fields.
In this case, we simply delete it because SELECT g.* guarantees unique
records to be retrieved by the first field.
2006-09-04 22:05:58 +00:00
stronk7 fea43a7f51 Casting $course->modinfo to string prevents one notice to
be showed when it's null, returning false as desired.
2006-09-04 21:12:37 +00:00
moodler c2da075758 Further reductions in logic to deprectaed functions 2006-09-04 08:31:07 +00:00
vyshane 1795175972 Re-worded comment to make more sense 2006-09-04 08:19:23 +00:00
moodler dd46fc5daa Just some small doc changes 2006-09-04 08:15:48 +00:00
vyshane b331040e9e TCPDF pdf library 2006-09-04 08:11:37 +00:00
vyshane 713b20faae Wrapper class with modifications to TCPDF for Moodle usage. 2006-09-04 08:10:08 +00:00
skodak 6d574c33b4 fixed missing global $USER 2006-09-04 08:01:57 +00:00
toyomoyo 2acc290c17 legacy functions to use 4th parameter to by pass doanything capability 2006-09-04 04:50:12 +00:00
moodler be7ed5f8a8 Merged confirmation email fix from stable 2006-09-04 02:30:52 +00:00
stronk7 56b4d70d58 typo ;-) 2006-09-03 21:43:37 +00:00
stronk7 71c143f41e The custom function to convert the user table hasn't to drop/create indexes anymore.
It's handled automatically by the main utf8 script.
2006-09-03 19:20:01 +00:00
skodak b1631fef28 add admin_tree to front page during install and upgrade 2006-09-03 18:37:41 +00:00
stronk7 4762bff7a3 Added the feedback attribute to the execute_sql_arr() function. 2006-09-03 17:56:34 +00:00
skodak e9a207595c allow deleting of block when original code not present 2006-09-03 17:46:27 +00:00
moodler 460a7a6271 Cutting down on the debug notices 2006-09-03 16:31:46 +00:00
moodler 7191a1fa27 Added capability for showing documentation links 2006-09-03 16:26:55 +00:00
stronk7 de48394039 Prevent NULL fields in 1.7 to become NOT NULL after the UTF-8 migration process. 2006-09-03 15:33:42 +00:00
skodak 50999a0b94 new admin block fixes and reorganisation - I guess we need something more traditional for now 2006-09-03 13:10:56 +00:00
gustav_delius 5b3df41fd9 The file countries.php does not exist in lang/en, only in lang/en_utf8. Therefore the fallback default in the function get_list_of_countries() should always be en_utf8. 2006-09-03 11:38:45 +00:00
moodler 4d2401d524 Removed student view 2006-09-03 08:46:30 +00:00
moodler dc411d1be0 Fices bug when loading another user's capabilities (it would trash your own) 2006-09-03 08:45:41 +00:00
moodler d5a0163891 Removed student view completely until a roles-ased replacement can be made 2006-09-03 08:10:51 +00:00
moodler c4d0753b25 Moving deprecated functions to deprecatedlib.php from moodlelib.php and
some cleanups around the place.

Many of the functions in deprecatedlib.php have been rewritten to work with
the new roles and capabilities so that they can still work as well as possible.
2006-09-03 08:10:10 +00:00
moodler 1911105fa1 Fixed typo 2006-09-03 08:00:03 +00:00