Commit Graph

23 Commits

Author SHA1 Message Date
2e241fea56 MDL-56973 wiki: New page title readonly after changing course language 2017-05-19 11:12:55 +02:00
1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
487f6471a0 MDL-51935 wiki: Add missing strings in wiki 2015-11-10 10:05:06 +01:00
a8481a66fe MDL-40058 mod_wiki: Replaced add_to_log for page created to event 2013-12-11 13:53:00 +11:00
74df2951d1 Revert "MDL-39876 Change get_record('course') calls to get_course"
This reverts commit ab7632b74c.
2013-08-21 13:42:30 +08:00
ab7632b74c MDL-39876 Change get_record('course') calls to get_course 2013-08-15 11:31:20 +01:00
9daabc71ea 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:47:26 +08:00
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
ee35fa43de Merge branch 'wip-MDL-30478-master' of git://github.com/abgreeve/moodle 2012-04-25 01:11:38 +02:00
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
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
4ae89dfea7 MDL-32018 mod_wiki: Fixed up whitespace after peer-review 2012-03-30 10:21:23 +13:00
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
476aea8d8b MDL-26674 wiki2.0: cleaned wiki event logging patch 2012-03-19 11:15:06 +08:00
b7921fc458 MDL-26674 wiki2.0: Fixed wiki activity log 2012-03-19 10:20:18 +08:00
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
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
a878137097 wiki MDL-24130 fixed errors when editing is turned on when in wiki page creation. 2010-09-28 08:14:33 +00:00
0f70da0f49 [MDL-23137]
replacing some require_course_login by require_login
2010-08-12 10:01:19 +00:00
621f3ef519 [MDL-23130]
Fixing sql code style and sql injection problems
2010-07-30 10:49:41 +00:00
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
74c6a62c73 [MDL-22112]
Finishing some todos and fixing some bugs
2010-05-21 11:07:43 +00:00
00710f4cc1 MDL-22112, push wiki 2.0 into head 2010-05-02 11:28:11 +00:00