]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-16384, enable management url"
authordongsheng <dongsheng>
Wed, 24 Sep 2008 05:18:18 +0000 (05:18 +0000)
committerdongsheng <dongsheng>
Wed, 24 Sep 2008 05:18:18 +0000 (05:18 +0000)
repository/alfresco/repository.class.php

index 61a2676df315728ad752b3486b7b2927897b8988..2092d5f8ab47056d4ad1b74bdf1c6135aad32b48 100755 (executable)
@@ -87,9 +87,13 @@ class repository_alfresco extends repository {
         global $CFG;
 
         $ret = array();
-        $ret['manage'] = $CFG->wwwroot .'/files/index.php'; // temporary
         $ret['dynload'] = true;
         $ret['list'] = array();
+        $url = $this->alfresco_url;
+        $pattern = '#^(.*)api#';
+        preg_match($pattern, $url, $matches);
+        $ret['manage'] = $matches[1].'faces/jsp/dashboards/container.jsp';
+
         $ret['path'] = array(array('name'=>'Root', 'path'=>''));
 
         if (empty($uuid)) {