Commit Graph

16 Commits

Author SHA1 Message Date
Adam Olley 4bd8e65273 MDL-53945 mnet: Use moodle_url to provide string with url
Using moodle_url where possible is preferable to hardcoding uri's as
moodle_url is able to take care of alot of the formatting for us.

In this instance, it handles the $CFG->admin url path for us.
2016-11-04 09:10:31 +10:30
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
Frederic Massart 93539c44dc MDL-18183 mnet: Option to verify peer and host of MNet peer using HTTPS 2014-11-21 11:33:16 +08:00
Petr Škoda bd3b3bba9f MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
Rossiani Wijaya c71d9297a6 MDL-39362 Admin: fixed setType() error for networking 2013-04-29 11:59:48 +08:00
Andrew Robert Nicols 8219502369 MDL-32454 Fix issues highlighted by strict warnings in MNet code 2012-04-16 09:34:41 +01:00
Petr Skoda f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Sam Hemelryk 4460312d08 MDL-25299 mnet: Fixed validation when no public key is provided 2012-02-17 16:47:15 +13:00
David Mudrak 1322a56df3 MDL-30170 MNet peers administration - various usability improvements
While fixing MDL-30170, the following tiny usability details were
improved along the way:

* the maximum length of the peer site title and the hostname is now
  validated (this was actually a real bug as the default value is pre-loaded
  from the peer) so the admin gets a nice validation error instead of
  the database write exception when trying to register a host with a
  longer site title.
* hard-coded English string 'All Hosts' is now localized
* the hostname link in the list of MNet peers leads to the peer itself
2011-12-15 21:51:33 +01:00
David Mudrak 8a6f2291f2 MDL-30170 MNet peers administration - highlight the undelete widget
The patch highlights the undelete radio selector at the host edit form.
It moves it to the end of the form (near the submit button) and displays
an explanation above the radio selector.

Also, the list of deleted hosts is now displayed below the table of
active peers at the Manage peers page.

The data returned by mnet_get_hosts() function now contain the deleted
status, too. It is possible to obtain deleted hosts from that function
now.
2011-12-15 21:51:31 +01:00
David Mudrak eca44f56bd MDL-21695 Removing commented code 2010-07-19 17:28:48 +00:00
David Mudrak 7c70229eba MDL-21137 MNet: UI to choose peer theme replaced with simple selector
There is no need to have whole featured theme selector with previews
etc here. Following the same form element as they have in Mahara, the
theme can now be selected for a given peer at 'Review host details' tab.
I have also noticed that force_theme and theme columns are redundant at
the moment. Keeping them both for future improvements, though.
2010-07-12 15:03:42 +00:00
David Mudrak e7c1d0211e NOMDL MNet admin/mnet trivial code cleanups spotted during development 2010-07-12 15:03:03 +00:00
David Mudrak 3cd7e90aa0 MNet: Unable to change peer name due to incorrect form element type 2010-07-12 12:20:46 +00:00
Penny Leach fa276a0c00 mnet MDL-21256 fixed regressions I introduced while rewriting 2010-02-17 01:59:39 +00:00
Penny Leach 96bd292127 mnet MDL-21256 & the start of a proper fix for MDL-20660
Unfortunately these are tangled up together a bit
2010-02-11 02:49:11 +00:00