Commit graph

30237 commits

Author SHA1 Message Date
jmg324
fec6dd580b altered require statement for config.
Not sure why, but the referential file path was causing cron to fail because config couldn't be found when running from scheduled cron (running in browser was fine!

It looks tidier anyway to have both require's done the same way, so now both user $dirroot to locate files required and this works with scheduled cron.
2008-01-10 09:47:29 +00:00
moodler
e93902f856 Merged parenting fix from 1.9 MDL-12221 2008-01-10 06:10:50 +00:00
moodler
0e13d28f3e Merge MDL-12904 (db support for auth plugins) from 1.9 and 1.8 2008-01-10 03:51:56 +00:00
moodler
e70aef0f31 Automatic installer.php lang files by installer_builder (20080110) 2008-01-10 03:20:21 +00:00
mjollnir_
e3cd54731c MDL-12894 Fixing language string mess (language packs containing \n) & moved them to the controllers,
also fixed a few typos and a || instead of && bug.  This all relates to the CLI installer.
2008-01-09 23:15:44 +00:00
skodak
b9f49659b6 MDL-12822 removing some unused grade functions (obsoleted by format grade function), renaming PUBLIC API to activity communication API and adding new querylib.php with useful functions (requested by other devs); merged from MOODLE_19_STABLE 2008-01-09 18:19:42 +00:00
tjhunt
2647f80ecd MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - and there were also instances in blog. 2008-01-09 17:23:47 +00:00
tjhunt
bb9a123a73 MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - this was repeated in other parts of the user profile that I had not noticed when I fixed this before. 2008-01-09 16:46:21 +00:00
urs_hunkler
52ea8aa026 Merged from 1.9 and checked :: MDL-12221 :: I added changes to weblib and the forum and glossary view pages, the custom_corners and standard theme to get those pages working.
In the view pages I changed the container function call to a simple "echo 'div ...'" to avoid the custom_corners container overhead and page oddity.

In weblib I added "clearfix" handling to the function "print_box_start($classes ...". "clearfix" is handed over to the containing divs. This is a hack, but I didn't know how to handle it without rewriting too much areas.
2008-01-09 15:52:08 +00:00
poltawski
4de1ef8cc2 MDL-12889 - bad capability check [thanks Tim!] in assignment recent activity report
merged from MOODLE_19_STABLE
2008-01-09 12:57:44 +00:00
poltawski
e0bd367d01 MDL-12888 - remove require to form no longer used
merged from MOODLE_19_STABLE
2008-01-09 11:04:39 +00:00
poltawski
8bbcf67bce MDL-12888 - remove require to form no longer used
merged from MOODLE_19_STABLE
2008-01-09 10:57:45 +00:00
poltawski
f62cb19d89 MDL-10886 - Category edit: use 'save changes', enable cancel button to allow us
to get back from where we came from & refine where we are returned to when cancelled.
merged from MOODLE_19_STABLE
2008-01-09 10:49:59 +00:00
poltawski
4597d5335b MDL-12461 - wrong urls for message related log entries
merged from MOODLE_19_STABLE
2008-01-09 10:12:31 +00:00
moodler
a58ff1159b Fixed missing string MDL-12801 2008-01-09 07:36:29 +00:00
moodler
8871caf0ac Merged MDL-12801 from MOODLE_18_STABLE (improve roles terminology for system) 2008-01-09 06:50:42 +00:00
scyrma
6a8fd52898 Small documentation fix. 2008-01-09 04:10:02 +00:00
ericmerrill
817fb4cb01 MDL-11674
Changing back an issue that could cause dataloss.
2008-01-09 02:13:52 +00:00
mjollnir_
2f8d2e1a2b Merged from MOODLE_19_STABLE: MDL-12884 web installer should set the depth of the miscellaneous course category to 1 too (discussion in moodle hq skype chat with Petr) 2008-01-08 23:27:45 +00:00
mjollnir_
9816d8afc0 MDL-12884: cli installer should create the context for the Miscellaneous course category 2008-01-08 23:23:19 +00:00
martinlanghoff
7ce4ce0aa4 mod/chat:chat_cron() - IS NOT NULL is better - MDL-11674 2008-01-08 22:36:17 +00:00
poltawski
46decdf5d9 MDL-12840 - gradebook CSV import was failing due to newlines with nothing
on them
merged from MOODLE_19_STABLE
2008-01-08 22:25:07 +00:00
martinlanghoff
319038c39d mod/chat:chat_cron() delete stale chat messages with a single query, fast, and portable too! MDL-11674 2008-01-08 20:58:24 +00:00
poltawski
667a2d481e MDL-12882 - we were caching empty records which caused clone warnings
merged from MOODLE_19_STABLE
2008-01-08 20:20:36 +00:00
tjhunt
06e2b0de2a MDL-12771 - change multianswer quetsion type HTML to more closely match that of other question types, in order to fix a layout glitch in Moodle 1.9. 2008-01-08 18:37:46 +00:00
tjhunt
a656e0de48 MDL-12785 - Partially correct tick icon not displayed for MULTICHOICE, single answer questions. Fix thanks to Joseph Rzeau. Merged from MOODLE_18_STABLE. 2008-01-08 18:29:20 +00:00
urs_hunkler
4457871960 merged from 1.9 :: MDL-12881 :: added class names "username" and "password" for better login form handling. 2008-01-08 18:07:47 +00:00
sam_marshall
40a94e4374 MDL-12876 Moved accesshide text further off the screen as it was sometimes visible 2008-01-08 17:30:50 +00:00
poltawski
2f2b289fe2 MDL-12464 - refine further so that glossary can't refer to instance from
another course (and cause breakage)
2008-01-08 16:47:19 +00:00
tjhunt
003bbcc817 MDL-12875 - Hidden courses not in category list not visible to teachers on those courses in the list of courses in a category. 2008-01-08 15:17:02 +00:00
tjhunt
cc3d5e10ec Put back DEBUG_DEVELOPER sanity check in has_capability, that makes sure the capabiltiy you are asking about actually exists. I know it takes an extra DB query, but it is DEBUG_DEVELOPER only, and it is worth its weight in gold, because otherwise you get really subtle bugs that take forever to diagnose. I know, I have just been banging my head against the wall for an hour. 2008-01-08 15:04:00 +00:00
poltawski
4282d047c2 MDL-9372 - only show RSS options in database module when RSS is enabled
merged from MOODLE_19_STABLE
2008-01-08 13:40:32 +00:00
poltawski
8857a0b425 MDL-10813 - Course requests not respecting course request category.
Also made the course request category more robust, as breakage would
incur if $CFG->defaultrequestcategory didn't exist as a category.
merged from MOODLE_19_STABLE
2008-01-08 12:51:07 +00:00
poltawski
435f3044df MDL-12873 - show an add course button when editing at the top level (which
is the default view when you click 'Add/Edit Courses')

merged from MOODLE_19_STABLE
2008-01-08 12:00:11 +00:00
skodak
c395030777 MDL-11830 width applied to input fields only, that should solve the incorrect size of button; merged from MOODLE_19_STABLE 2008-01-08 07:33:48 +00:00
skodak
f49312b6a6 MDL-12869 fixed minor security problem in installer - reported by hanno; merged from MOODLE_19_STABLE 2008-01-08 07:16:18 +00:00
nicolasconnault
6ca117e27f Misplaced variable definition 2008-01-08 06:07:56 +00:00
martinlanghoff
2e7e89a907 dmllib:rcache_set()/rcache_get() - use clone() function which we can support in PHP4 - MDL-12827 2008-01-08 04:13:32 +00:00
moodler
378d70eb51 Automatic installer.php lang files by installer_builder (20080108) 2008-01-08 03:21:40 +00:00
iarenaza
066de339a5 MDL-12858 fix print_error() usage.
print_error()'s third parameter is the URL we jump to (defaults to
$CFG->wwwroot if not set) when we click the 'Continue' button, not the message
string parameter object.

Forward ported from MOODLE_18_STABLE
2008-01-08 00:13:49 +00:00
poltawski
3a0dd57e11 MDL-12853 - fix typo 2008-01-07 21:40:25 +00:00
poltawski
0756394e6c MDL-12866 - fix missing 'is' typo 2008-01-07 21:30:18 +00:00
poltawski
209819bd72 MDL-12856 - previous commit was breaking moodle installs after
redeclaring method. Remove the duplicate function.

merged from MOODLE_19_STABLE
2008-01-07 20:57:44 +00:00
poltawski
3b13da342b MDL-12859 - add some whitespace so translation layout doesn't get messed
up; merged from MOODLE_19_STABLE
2008-01-07 20:32:16 +00:00
tjhunt
dba21d4a19 Use the locale to sort the list of activites everywhere. This matches a change a made in one place before christmas. If you don't do this, the PHP sorts by ASCII order, so mixed case names, or special characters, get sorted wrongly. Merged from MOODLE_19_STABLE. 2008-01-07 16:46:35 +00:00
poltawski
1c8ec30d95 MDL-6529 - strip slashes when displaying category added success messsage
merged from MOODLE_19_STABLE
2008-01-07 12:21:06 +00:00
moodler
e17e126517 Automatic installer.php lang files by installer_builder (20080107) 2008-01-07 03:19:52 +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
ikawhero
6b34dd500c Adding method to allow printing of the enrolment key form code when using PayPal.
Merged from MOODLE_19_STABLE
2008-01-07 01:02:45 +00:00
martinlanghoff
19f2318a44 accesslib: get_users_by_capability() now excludes doanything'ers properly
With some subselect-outer-join poison-pill magic, when the we don't
want doanything users, we remove the roles that would grant such
dubious status.

Just a flick of the SQL muscle, actually.
2008-01-06 23:26:19 +00:00