Commit Graph

17 Commits

Author SHA1 Message Date
Adrian Greeve c6b458edce MDL-35653 - mod/wiki: Force format now lets users edit wiki pages.
Thanks to Tõnis Tartes for part of this solution.

When force format was selected in the options, trying to view the
wiki would redirect to the front page with a message saying that
you do not have permission to edit this page. Students had no way
of viewing any entries or creating the first page.

When in force format it skips a page , which would be considered
uncessary for students, but this means that the group id is not set
and this is what is causing most of the problems.

I also have included a check to see if the title is default and whether
the user has permission to view all groups. In these situations the
intermediate page is displayed.
2012-12-19 08:51:48 +08:00
Ankit Agarwal 1df2362669 MDL-34470 wiki: Replace all instances of get_context_instance() with context_xxx::instance() in mod/wiki 2012-07-23 15:10:07 +08:00
Eloy Lafuente (stronk7) ee35fa43de Merge branch 'wip-MDL-30478-master' of git://github.com/abgreeve/moodle 2012-04-25 01:11:38 +02:00
Petr Skoda cdbea7eed1 MDL-31607 use full course object for require_login() if already available
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Adrian Greeve 5dedd64d58 MDL-30478 - wiki - Fixing up group problems when viewing and creating wiki pages.
Thanks to Matt Kolb for his contribution.
2012-04-20 07:27:50 +08:00
Sam Hemelryk 4ae89dfea7 MDL-32018 mod_wiki: Fixed up whitespace after peer-review 2012-03-30 10:21:23 +13:00
Sam Hemelryk 4c4e659173 MDL-32018 mod_wiki: Fixed formatting of the page title so that is is consistent and secure 2012-03-30 10:21:23 +13:00
Rajesh Taneja 476aea8d8b MDL-26674 wiki2.0: cleaned wiki event logging patch 2012-03-19 11:15:06 +08:00
Diane Villemure b7921fc458 MDL-26674 wiki2.0: Fixed wiki activity log 2012-03-19 10:20:18 +08:00
Dongsheng Cai 97f2eb45a1 MDL-23395, go straight to page editing page when title is not empyt and forceformat is set 2010-11-08 06:33:00 +00:00
Aparup Banerjee af49fc364c wiki MDL-24130 fixed editing errors when editing is turned on when creating a first wiki page. 2010-09-28 09:04:24 +00:00
Aparup Banerjee a878137097 wiki MDL-24130 fixed errors when editing is turned on when in wiki page creation. 2010-09-28 08:14:33 +00:00
Jordi Piguillem 0f70da0f49 [MDL-23137]
replacing some require_course_login by require_login
2010-08-12 10:01:19 +00:00
Jordi Piguillem 621f3ef519 [MDL-23130]
Fixing sql code style and sql injection problems
2010-07-30 10:49:41 +00:00
Petr Skoda 1b048629bc we do not need any new api for fetching of course record - we have DML with MUST_EXIST flag which is the right way now; we should not include course/lib.php on each page anyway 2010-06-17 22:50:25 +00:00
Jordi Piguillem 74c6a62c73 [MDL-22112]
Finishing some todos and fixing some bugs
2010-05-21 11:07:43 +00:00
Dongsheng Cai 00710f4cc1 MDL-22112, push wiki 2.0 into head 2010-05-02 11:28:11 +00:00