Commit f8a9e620 authored by Donal McMullan's avatar Donal McMullan
Browse files

Move peer.php to the /lib directory

parent 89c35eea
......@@ -110,7 +110,7 @@ class Dispatcher {
}
function keyswap($function, $params) {
require_once(get_config('docroot') . 'include/eLearning/peer.php');
require_once(get_config('libroot') . 'peer.php');
//TODO: Verify params
(empty($params[0])) ? $wwwroot = null : $wwwroot = $params[0];
......
......@@ -441,7 +441,7 @@ function get_peer($wwwroot) {
static $peers = array();
if(isset($peers[$wwwroot])) return $peers[$wwwroot];
require_once(get_config('docroot') . 'include/eLearning/peer.php');
require_once(get_config('libroot') . 'peer.php');
$peer = new Peer();
if(!$peer->findByWwwroot($wwwroot)) {
......
......@@ -26,7 +26,7 @@
defined('INTERNAL') || die();
require_once(get_config('docroot') . 'auth/lib.php');
require_once(get_config('docroot') . 'include/eLearning/peer.php');
require_once(get_config('libroot') . 'peer.php');
require_once(get_config('libroot') . 'applicationset.php');
require_once(get_config('docroot') . 'api/xmlrpc/lib.php');
......
......@@ -27,7 +27,7 @@
// TODO : lib
defined('INTERNAL') || die();
require_once(get_config('docroot') .'include/eLearning/peer.php');
require_once(get_config('libroot') .'peer.php');
class HostSet implements Iterator {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment