96 Commits

Author SHA1 Message Date
toyomoyo
81e956b964 added some capabilities 2006-08-30 08:43:17 +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
30691fc3c3 Solve some upperpivot notices and wrong behaviours. More coming... 2006-04-09 10:59:39 +00:00
stronk7
f7f735b877 Some defaults applied to paramenters was preventing defaults based
on formats to work properly.
2006-04-09 10:45:14 +00:00
stronk7
2cf1011b25 Now searchbox table is closed by hand, because print_simple_box_xxx()
methods (div based) were breaking things a bit here. Bug 5087)
(http://moodle.org/bugs/bug.php?op=show&bugid=5087)
2006-04-09 09:11:18 +00:00
stronk7
7123515431 Now glossary pivot should be working fine under every charset. 2006-01-07 12:11:52 +00:00
stronk7
a983f05a39 Now the group by initial should work under multibyte strings.
Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:35:13 +00:00
moodler
aa8139414e Replaced optional_var with optional_param 2005-12-07 06:21:58 +00:00
stronk7
0fd4f40714 Now both empty search strings and 1 letter search strings works fine in
the glossary. Terms are hilighted properly (but 1 letter terms, because
it's a hilight limitation). Bug 4274.
(http://moodle.org/bugs/bug.php?op=show&bugid=4274)

Merged from MOODLE_15_STABLE
2005-11-06 20:06:05 +00:00
stronk7
7fe60b0c76 Now the ALL link in the paging bar is under the
glossary->showall setting control. Bug 4072.
(http://moodle.org/bugs/bug.php?op=show&bugid=4072)

Merged from MOODLE_15_STABLE
2005-09-20 17:19:44 +00:00
stronk7
fddeb22f8e Now + and - search terms are properly highlighted
under glossary searches. This was broken recently
solving some non-iso problems.

Merged from MOODLE_15_STABLE
2005-06-19 14:46:32 +00:00
urs_hunkler
dfa5ff4f4e changed inline styles to classes to be able to handle the font sizes with the CSS files, 2005-04-22 21:13:37 +00:00
stronk7
acc22cef2d Now the fullsearch check is enabled by default
(perhaps it should be erased!)
2005-04-19 23:36:46 +00:00
stronk7
74a278553b Now glossary searches are full searches (like 1.4 forums). 2005-04-19 00:14:36 +00:00
stronk7
fb3178058c Bug 2918. Change proposed by t.imoto.
(http://moodle.org/bugs/bug.php?op=show&bugid=2918)

Merged from MOODLE_14_STABLE
2005-04-14 23:20:33 +00:00
stronk7
35d07065fc Avoid one debug 2005-04-13 17:04:26 +00:00
moodler
7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +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
moodler
843cd656f4 Changing some styles (SE) 2005-03-22 09:48:33 +00:00
moodler
380c2091e1 Remove old div wrapper 2005-03-17 20:58:04 +00:00
moodler
b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
moodler
91b4cb6867 More style changes. Will it ever end? (SE) 2005-02-25 09:16:54 +00:00
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
moodler
48b29ba423 Moved rsslib.php from the rss directory to the lib directory with the
other libraries
2005-01-25 06:09:31 +00:00
urs_hunkler
fe32b4f6d7 _ added the DIV framework for new CSS 2005-01-19 12:02:52 +00:00
moodler
d3709d95c4 Changes for XHTML compatibility and other HTML code cleanup 2005-01-13 10:08:23 +00:00
stronk7
41c980286b Now print-view availability for students can be configured by glossary.
Bug 2080 (http://moodle.org/bugs/bug.php?op=show&bugid=2080)
2005-01-12 00:55:38 +00:00
moodler
d23e2291a5 Checking in some old changes from Shane, I think ... just spacing ... 2004-12-22 02:51:54 +00:00
stronk7
ff4240129c Some checks are now done. SC#18.
Merged from MOODLE_14_STABLE
2004-12-15 09:03:39 +00:00
stronk7
1c144d0eed Changed some parameters. SC#33.
Merged from MOODLE_14_STABLE
2004-11-28 23:54:11 +00:00
stronk7
e2cf5316c1 New paging system for glosaries.
100% compatible with Moodle's one.
Supports more options. Perhaps we could use it
sitewide.

Merged from MOODLE_14_STABLE
2004-11-24 23:37:46 +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
stronk7
2b99ea9efb Print view isn't accesible if the activity is hidden.
Bug 1837
(http://moodle.org/bugs/bug.php?op=show&bugid=1837)

Merged from MOODLE_14_STABLE
2004-11-16 23:36:35 +00:00
moodler
52159a0df4 More changes for XHTML compatibility 2004-10-26 09:28:54 +00:00
stronk7
f4646b44c1 Now RSS links ae showed properly in SITE course when
user isn't logged.

Solve a problem with if($USER) under PHP5.
2004-10-05 23:21:38 +00:00
stronk7
b2ddd9d7ae Now RSS links are displayed ok in SITEID course.
Bug 2048.
(http://moodle.org/bugs/bug.php?op=show&bugid=2048)

Merged from MOODLE_14_STABLE
2004-10-04 22:21:30 +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
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
stronk7
539f698d73 Important changes about how view.php (and print.php) retrieve records
from BD to be displayed. Some SQL statements have been modified to
get target records, avoiding a lot of post-processing causing some
bugs like Bug 1912
(http://moodle.org/bugs/bug.php?op=show&bugid=1912)

Merged from MOODLE_14_STABLE
2004-09-09 18:31:50 +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
moodler
359f27588b Merged from stable 2004-08-26 15:21:57 +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
stronk7
a359c29b79 Bulk changes to support plugin-formats in glossaries.
See the TODO.txt to get details about pending tasks.
The db upgrade should work fine (not tested under postgresql).
The plugin architecture is finished too.
See Bug 936.
(http://moodle.org/bugs/bug.php?op=show&bugid=936)
2004-07-27 17:19:47 +00:00
stronk7
e30a276249 Now paging will mantain the "fullsearch" option.
Bug 1438.
(http://moodle.org/bugs/bug.php?op=show&bugid=1438)
2004-05-21 19:24:23 +00:00
stronk7
165278015e Solve some notice with debug = on.
Thanks to skodak. Bug 1405.
(http://moodle.org/bugs/bug.php?op=show&bugid=1405)
2004-05-20 19:51:23 +00:00
stronk7
7856dd5949 Opps. I forgot to commit this files yesterday... :-(
This close Bug 1370
(http://moodle.org/bugs/bug.php?op=show&bugid=1370)
2004-05-15 17:27:50 +00:00