Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-10275 backporting gd environment test

  • Loading branch information...
commit 985d26e786b0e0ee6328342164b53e5cc0980342 1 parent 2e7e595
skodak authored

Showing 2 changed files with 22 additions and 4 deletions. Show diff stats Hide diff stats

  1. +21 4 admin/environment.xml
  2. +1 0  lang/en_utf8/admin.php
25 admin/environment.xml
@@ -270,13 +270,30 @@
270 270 <ON_ERROR message="ziprequired" />
271 271 </FEEDBACK>
272 272 </PHP_EXTENSION>
  273 + <PHP_EXTENSION name="gd" level="optional">
  274 + <FEEDBACK>
  275 + <ON_CHECK message="gdrecommended" />
  276 + </FEEDBACK>
  277 + </PHP_EXTENSION>
273 278 </PHP_EXTENSIONS>
274   - <CUSTOM_CHECKS>
275   - <CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_register_globals" level="required">
  279 + <PHP_SETTINGS>
  280 + <PHP_SETTING name="memory_limit" value="40M" level="required">
276 281 <FEEDBACK>
277   - <ON_CHECK message="globalswarning" />
  282 + <ON_ERROR message="settingmemorylimit" />
278 283 </FEEDBACK>
279   - </CUSTOM_CHECK>
  284 + </PHP_SETTING>
  285 + <PHP_SETTING name="safe_mode" value="0" level="optional">
  286 + <FEEDBACK>
  287 + <ON_CHECK message="settingsafemode" />
  288 + </FEEDBACK>
  289 + </PHP_SETTING>
  290 + <PHP_SETTING name="file_uploads" value="1" level="optional">
  291 + <FEEDBACK>
  292 + <ON_CHECK message="settingfileuploads" />
  293 + </FEEDBACK>
  294 + </PHP_SETTING>
  295 + </PHP_SETTINGS>
  296 + <CUSTOM_CHECKS>
280 297 </CUSTOM_CHECKS>
281 298 </MOODLE>
282 299 </COMPATIBILITY_MATRIX>
1  lang/en_utf8/admin.php
@@ -311,6 +311,7 @@
311 311 $string['frontpageroles'] = 'Front Page roles';
312 312 $string['frontpagesettings'] = 'Front Page settings';
313 313 $string['fullnamedisplay'] = 'Full Name Format';
  314 +$string['gdrecommended'] = 'GD extension is used for conversion of images, some features such as user progile images will not be available if missing.';
314 315 $string['gdversion'] = 'GD version';
315 316 $string['generalsettings'] = 'General settings';
316 317 $string['globalsquoteswarning'] = '<p><strong>Security Warning</strong>: to operate properly, Moodle requires <br />that you make certain changes to your current PHP settings.<p/><p>You <em>must</em> set <code>register_globals=off</code> and/or <code>magic_quotes_gpc=on</code>. <br />If possible, you should set <code>register_globals=off</code> to improve general <br /> server security, setting <code>magic_quotes_gpc=on</code> is also recommended.<p/><p>These settings are controlled by editing your <code>php.ini</code>, Apache/IIS <br />configuration or <code>.htaccess</code> file.</p>';

0 comments on commit 985d26e

Please sign in to comment.
Something went wrong with that request. Please try again.