]> git.mjollnir.org Git - moodle.git/commitdiff
left-hand pane on image upload screen is missing MDL-6759
authorskodak <skodak>
Sun, 1 Oct 2006 16:38:26 +0000 (16:38 +0000)
committerskodak <skodak>
Sun, 1 Oct 2006 16:38:26 +0000 (16:38 +0000)
lib/editor/htmlarea/popups/insert_image.php

index b4c1d0c0af0b4fe35466508ecdd0867a253a39bb..b2c947499142bfcdf2f589fe27fc724c3f55632b 100644 (file)
@@ -264,12 +264,11 @@ form { margin-bottom: 0px; margin-top: 0px; }
       <td width="55%" valign="top"><?php
       if(has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $id))) {
           print_string("filebrowser","editor");
+          echo "<br />";
+          echo "<iframe id=\"ibrowser\" name=\"ibrowser\" src=\"{$CFG->wwwroot}/lib/editor/htmlarea/coursefiles.php?usecheckboxes=1&id={$course->id}\" style=\"width: 100%; height: 200px;\"></iframe>";
       } else {
-          print "";
-      }?><br />
-      <?php has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $id))?
-      "<iframe id=\"ibrowser\" name=\"ibrowser\" src=\"".$CFG->wwwroot."/lib/editor/htmlarea/coursefiles.php?usecheckboxes=1&id=".$course->id."\" style=\"width: 100%; height: 200px;\"></iframe>":
-      "";?>
+          print "<br />";
+      }?>
       </td>
       <td width="45%" valign="top"><?php print_string("preview","editor");?>:<br />
       <iframe id="ipreview" name="ipreview" src="about:blank" style="width: 100%; height: 200px;"></iframe>