]> git.mjollnir.org Git - moodle.git/commitdiff
Admin gets some information when GD is disabled
authormoodler <moodler>
Thu, 19 Aug 2004 04:45:07 +0000 (04:45 +0000)
committermoodler <moodler>
Thu, 19 Aug 2004 04:45:07 +0000 (04:45 +0000)
user/edit.html

index b7f44690b24f12496ac9cca3abf9f8b7eee397af..2b2f5c8af93e2f646ad2d534017a19dd6c81773a 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-   if (!isset($user->htmleditor)) {
+   if (!isset($user->htmleDITOr)) {
        $user->htmleditor = 1;
    }
    if (!isset($user->picture)) {
@@ -224,7 +224,18 @@ if (isadmin()) {
     ?>
     </td>
 </tr>
-<?php }  ?>
+<?php } else if (empty($CFG->gdversion) and isadmin()) {  ?>
+<tr valign=top>
+    <td align=right><p><?php print_string("newpicture") ?>:</td>
+    <td>
+    <?php 
+        echo "<a href=\"$CFG->wwwroot/$CFG->admin/config.php\">";
+        print_string('gdnot');
+        echo "</a>";
+    ?>
+    </td>
+</tr>
+<?php } ?>
 
 <tr valign=top>
     <td align=right><p><?php print_string("webpage") ?>:</td>