MDL-21400 termopary workaround for regression
authorPetr Skoda <skodak@moodle.org>
Sun, 14 Feb 2010 19:57:27 +0000 (19:57 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 14 Feb 2010 19:57:27 +0000 (19:57 +0000)
lib/form/url.php

index b664b4c..29161dc 100755 (executable)
@@ -27,7 +27,7 @@ class MoodleQuickForm_url extends HTML_QuickForm_text{
             $this->_options['usefilepicker'] = true;
         }
         parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
-        repository_head_setup();
+        //repository_head_setup(); TODO: fixme
     }
 
     function setHiddenLabel($hiddenLabel){
@@ -58,7 +58,8 @@ class MoodleQuickForm_url extends HTML_QuickForm_text{
         }
         $client_id = uniqid();
 
-        $repojs = repository_get_client($context, $client_id, '*', FILE_EXTERNAL);
+        //$repojs = repository_get_client($context, $client_id, '*', FILE_EXTERNAL);
+        $repojs = ''; //TODO: fixme
 
         $PAGE->requires->js('/lib/form/url.js');
         $str .= $repojs;