Commit Graph

8 Commits

Author SHA1 Message Date
Charles YVANES 458453cee0 MDL-29895 core: removed require_login() when not needed 2018-09-10 11:22:50 +02:00
Adam Olley 20ec56504f MDL-53945 mnet: replace hardcoded admin dir with cfg
Several places in admin/mnet pull in required files using a hardcoded
admin dir string, as this is configurable it needs to use $CFG->admin
instead.

Places where the url is passed through moodle_url don't need to be
updated as that already automatically translates the urls for us.
2016-11-03 11:12:32 +10:30
Russell Smith 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
Frederic Massart bf006d2c15 MDL-34455 Libraries: Replaced deprecated get_context_instance() 2012-07-23 14:33:02 +08:00
Petr Skoda d078f6d38e standardized PHPDocs package info 2010-09-06 11:29:21 +00:00
Petr Skoda 61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
jerome mouneyrac e2c4313253 mnet MDL-21582 fix peer service page redirection with a moodle_url 2010-02-11 08:26:46 +00:00
Penny Leach d36fa8159b mnet MDL-21256 reworked some more of admin/mnet to use forms and new output stuff 2010-02-11 02:50:28 +00:00