36 Commits

Author SHA1 Message Date
mattc-catalyst
70c6c0ad70 MDL-9474: Updated build_navigation() to use global $COURSE
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-23 21:11:10 +00:00
mattc-catalyst
236387ab93 Breadcrumbs: mod/journal changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:43:05 +00:00
stronk7
0bc94c9990 Last reserved word is out now!
journal_entries->comment to entrycomment

Only 2 tables have reserved names but they aren't
a problem if we force $CFG->prefix always
2006-09-21 09:54:00 +00:00
skodak
f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
gustav_delius
87b18f4ab7 Fixed call to required_param() 2006-04-05 07:46:52 +00:00
stronk7
c2dd62a773 Now journal->name supports filterall. 2005-03-30 19:26:23 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
moodler
36d9d5f70e Merged fixes from stable 2004-08-30 06:29:54 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
moodler
a12f686b62 Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

  ... more consistent with other functions
2004-03-13 14:24:34 +00:00
moodler
2969a73c00 Fixed bug getting group users 2004-02-15 14:51:24 +00:00
moodler
424aef6aef Use the new short way of setting up groups 2004-02-15 07:18:07 +00:00
moodler
9867144441 Group suport for Journals.
This module also has a crappy interface and must be fixed.  But not today.
2004-02-14 08:52:28 +00:00
moodler
8a55b99805 UPgrade logs to new format 2004-02-05 05:16:29 +00:00
moodler
a80a772821 Fixed some hard-coded strings http://moodle.org/bugs/bug.php?op=show&bugid=1011 2004-01-31 05:55:11 +00:00
moodler
a698fc0e92 Simplified logic a bit 2004-01-30 04:02:17 +00:00
moodler
efabdeddef Journal grading is now also all converted over to use scales as
well as numerical grades
2003-08-18 05:47:04 +00:00
moodler
3ba2985594 Robustness fixes 2003-04-21 08:08:33 +00:00
moodler
d9a9064e27 More rogue strings 2003-01-06 02:56:48 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
martin
3db1919baf More language fixes 2002-08-12 09:38:31 +00:00
martin
6b1746806c Misc small changes while I was working on assignments 2002-08-04 16:20:30 +00:00
martin
6f93182a0e OK, this is working now 2002-07-29 13:03:39 +00:00
martin
13da983e6c hmm wierd bug on production server but not testing ... this is to test that 2002-07-29 10:12:20 +00:00
martin
e383782039 Fixes to journal reporting 2002-07-29 09:48:52 +00:00
martin
85acc43e47 Improvements to report.php ... clearer code, new functions in lib.php
and now the journal entries are sorted with the newest at the top.
2002-07-29 07:21:36 +00:00
martin
b8973de69d Allow teachers to be marked, and allow ratings to be ignored 2002-07-23 17:56:52 +00:00
martin
b693339510 Bugfix in crumbs 2002-06-19 05:05:05 +00:00
martin
873960de8c Changes related to timezone display. Datetime display now uses userdate()
which itself uses the USER variable timezone to alter the displayed time.
2002-06-05 03:15:30 +00:00
martin
5eb45fa058 Various small fixes across all modules. Most notable was the revised
use of add_to_log, and the new logging format.
2002-05-31 09:07:11 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00