54 Commits

Author SHA1 Message Date
Petr Skoda
39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Rossiani Wijaya
2e4fd16675 MDL-20447 - bulk upload: add heading to the page and fix navbar content. 2010-05-28 06:38:17 +00:00
Andrew Davis
63e87951e6 rating MDL-21657 updated version of ratings including forum and glossary integration 2010-04-22 05:15:23 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Sam Hemelryk
92059c7ee5 mod MDL-21169 Removed update this module button and ensured there was a link in the settings block for it. 2009-12-23 01:57:55 +00:00
Dongsheng Cai
c8092ea5e3 "MDL-20345, use new comments api in glossary module" 2009-11-08 14:12:12 +00:00
Petr Skoda
1adbd2c350 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 14:55:15 +00:00
samhemelryk
5fa0208ec3 mod-glossary MDL-19809 Added set_url calls, replaced deprecated functions 2009-09-24 07:29:14 +00:00
samhemelryk
e6855d1aa0 mod-glossary MDL-19809 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 03:20:35 +00:00
nicolasconnault
0b36c9489d MDL-19809 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:44:52 +00:00
nicolasconnault
0578c9a2a9 MDL-19809 Converted all print_footer() calls 2009-08-06 14:13:29 +00:00
skodak
ccde17c3eb MDL-16075 adding support for embedded Glossary images 2009-04-16 06:36:11 +00:00
skodak
49bcd7372b MDL-16075 File storage conversion of Glossary 2008-08-17 21:27:43 +00:00
skodak
ae8c356614 MDL-15109 glossary dml conversion 2008-06-08 10:43:39 +00:00
dongsheng
5973a4c49e "MDL-14129, fix print_error" 2008-06-06 03:15:53 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
tjhunt
38e179a4ed MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.

Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.

If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
mattc-catalyst
01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst
3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
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
f3c8392617 Breadcrumbs: mod/glossary changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:16:38 +00:00
toyomoyo
baecd8cd72 dropping studentcanpost in glossary, MDL_7170 2006-11-15 03:15:59 +00:00
vyshane
7949f21b5f Removed 'mod/glossary:view' capability 2006-09-22 02:52:48 +00:00
skodak
b3e570450f removing some isteacher()s from glossary 2006-08-26 19:19:36 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +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
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
stronk7
ff62d70dc6 Two more uses of format_string() agains entry->concept 2006-04-15 19:28:26 +00:00
moodler
aa8139414e Replaced optional_var with optional_param 2005-12-07 06:21:58 +00:00
stronk7
d75584e3e6 Now entries containing apostrophes can be exported to main glossay
and deleted without problems. Bug 4136.
(http://moodle.org/bugs/bug.php?op=show&bugid=4136)

Merged from MOODLE_15_STABLE
2005-10-05 18:27:40 +00:00
stronk7
5bd9aa933a Now glossary->name is working under filterall. It was really complex!
Just thinking about to add support for filterall inside:
   - category->name
   - concept->name
   - filter!
2005-03-30 11:14:19 +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
stronk7
1b4002e0b7 Just changing some parameters stuff to new functions...
See SC and Bug 1837

Merged from MOODLE_14_STABLE
2004-11-17 00:14:34 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
stronk7
8a2fe40709 strip_tags() to some parameters. Thanks skodak.
Bug 1836
(http://moodle.org/bugs/bug.php?op=show&bugid=1836)

Merged from MOODLE_14_STABLE
2004-08-29 22:57:41 +00:00
stronk7
59c265b390 Now students cannot add/edit/delete entries if glossary->studentcanpost = 0
using manual URLs.

Merged from MOODLE_14_STABLE
2004-08-28 19:15:52 +00:00
stronk7
3a512f86c7 Some important changes arrive:
- 'editalways' applied to comments.
   - some minor notices out.
   - security bug solved:
      + users cannot edit any comment now.
      + users cannot delete any comment now.
      + users cannot edit any entry now.
      + users cannot delete any antry now.

Thanks to skodak, discovering the bug!!!

Merged from MOODLE_14_STABLE
2004-08-28 00:28:56 +00:00
stronk7
193a26447b Error when sending a delete-entry action to logs... 2004-08-27 09:13:32 +00:00
gustav_delius
90fcc576ea Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic. 2004-08-21 20:20:58 +00:00
moodler
bdb2f23f70 Started out with a small user interface fix (to use standard functions)
and ended up cleaning up the code quite a bit
2004-04-03 13:04:00 +00:00
stronk7
fabf55e684 Added the cmid field to some add_to_log() calls. To use it when
restoring logs. Now I think that everything is ready !! :-)
2004-02-18 20:52:44 +00:00
willcast
072f753331 - Some fixes when deleting entries and glossaries.
- Changing the way the comments are shown
- Saving a couple of lines in the Add Entry screen.
2003-12-02 14:35:39 +00:00
willcast
1ac87c7397 - Rewrite of the internal API in order to, hopefully, create an easy way to handle the flow of data internally and externally.
- Adding a new frame: Browse by Author
- A new, friendly way to show entries (asked by Martin): view?id=cm&mode=term&hook=[concept | alias ]
- Handling user activies, outline and complete.
- Properly showing new entries in recent activity box.
- Adding a flag to categories to specify if a category should or should not be automatically linked.
- Adding some missing strings and files as well.
- Adding a field to each glossary that specify how many entries by pages it should show.
2003-11-15 15:55:47 +00:00
willcast
c76e673ab5 - Cleaning a lot of code in edit.php and view.php
- Removing more notices when debug is ON
- Added a new feature: Now the entries have a default approval status... Not approved entries are shown on a teachers-only frame from which they can be approved or not prior to be visible by everyone.
2003-10-21 04:55:22 +00:00
willcast
677038ee7d - Removing notices when debug is on
- Deleting entries with attachments now delete the attachments properly
2003-10-20 16:42:49 +00:00
willcast
ad2c7282e9 - Housekeeping... :) 2003-10-18 13:43:36 +00:00
willcast
891ae55ee4 - Fixed a problem when showing the icons in entries with inline images.
- Fixed a bug when deleting entries without attachments.
2003-10-18 13:33:46 +00:00