mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-3381 - Remove all remaining core calls to ctype_* functions in 1.9, and make ctype required for 2.0. (merge from 1.9)
This commit is contained in:
parent
5832a6f34b
commit
bbbfc0579f
5 changed files with 18 additions and 2 deletions
|
@ -177,6 +177,11 @@
|
||||||
<ON_CHECK message="xmlrpcrecommended" />
|
<ON_CHECK message="xmlrpcrecommended" />
|
||||||
</FEEDBACK>
|
</FEEDBACK>
|
||||||
</PHP_EXTENSION>
|
</PHP_EXTENSION>
|
||||||
|
<PHP_EXTENSION name="ctype" level="optional">
|
||||||
|
<FEEDBACK>
|
||||||
|
<ON_CHECK message="ctyperecommended" />
|
||||||
|
</FEEDBACK>
|
||||||
|
</PHP_EXTENSION>
|
||||||
</PHP_EXTENSIONS>
|
</PHP_EXTENSIONS>
|
||||||
<CUSTOM_CHECKS>
|
<CUSTOM_CHECKS>
|
||||||
<CUSTOM_CHECK file="question/upgrade.php" function="question_check_no_rqp_questions" level="optional">
|
<CUSTOM_CHECK file="question/upgrade.php" function="question_check_no_rqp_questions" level="optional">
|
||||||
|
@ -249,6 +254,11 @@
|
||||||
<ON_CHECK message="xmlrpcrecommended" />
|
<ON_CHECK message="xmlrpcrecommended" />
|
||||||
</FEEDBACK>
|
</FEEDBACK>
|
||||||
</PHP_EXTENSION>
|
</PHP_EXTENSION>
|
||||||
|
<PHP_EXTENSION name="ctype" level="required">
|
||||||
|
<FEEDBACK>
|
||||||
|
<ON_ERROR message="ctyperequired" />
|
||||||
|
</FEEDBACK>
|
||||||
|
</PHP_EXTENSION>
|
||||||
</PHP_EXTENSIONS>
|
</PHP_EXTENSIONS>
|
||||||
<CUSTOM_CHECKS>
|
<CUSTOM_CHECKS>
|
||||||
<CUSTOM_CHECK file="question/upgrade.php" function="question_check_no_rqp_questions" level="optional">
|
<CUSTOM_CHECK file="question/upgrade.php" function="question_check_no_rqp_questions" level="optional">
|
||||||
|
|
|
@ -117,7 +117,7 @@ function build_mnet_logs_array($hostid, $course, $user=0, $date=0, $order="l.tim
|
||||||
|
|
||||||
if ($modaction) {
|
if ($modaction) {
|
||||||
$firstletter = substr($modaction, 0, 1);
|
$firstletter = substr($modaction, 0, 1);
|
||||||
if (ctype_alpha($firstletter)) {
|
if (preg_match('/[[:alpha:]]/', $firstletter)) {
|
||||||
$where .= " AND\n lower(l.action) LIKE '%" . strtolower($modaction) . "%'";
|
$where .= " AND\n lower(l.action) LIKE '%" . strtolower($modaction) . "%'";
|
||||||
} else if ($firstletter == '-') {
|
} else if ($firstletter == '-') {
|
||||||
$where .= " AND\n lower(l.action) NOT LIKE '%" . strtolower(substr($modaction, 1)) . "%'";
|
$where .= " AND\n lower(l.action) NOT LIKE '%" . strtolower(substr($modaction, 1)) . "%'";
|
||||||
|
@ -180,7 +180,7 @@ function build_logs_array($course, $user=0, $date=0, $order="l.time ASC", $limit
|
||||||
|
|
||||||
if ($modaction) {
|
if ($modaction) {
|
||||||
$firstletter = substr($modaction, 0, 1);
|
$firstletter = substr($modaction, 0, 1);
|
||||||
if (ctype_alpha($firstletter)) {
|
if (preg_match('/[[:alpha:]]/', $firstletter)) {
|
||||||
$joins[] = "lower(l.action) LIKE '%" . strtolower($modaction) . "%'";
|
$joins[] = "lower(l.action) LIKE '%" . strtolower($modaction) . "%'";
|
||||||
} else if ($firstletter == '-') {
|
} else if ($firstletter == '-') {
|
||||||
$joins[] = "lower(l.action) NOT LIKE '%" . strtolower(substr($modaction, 1)) . "%'";
|
$joins[] = "lower(l.action) NOT LIKE '%" . strtolower(substr($modaction, 1)) . "%'";
|
||||||
|
|
|
@ -65,6 +65,8 @@ $string['configurationcompletesub'] = 'Moodle made an attempt to save your confi
|
||||||
$string['configurationfileexist']='Configuration file already exist!';
|
$string['configurationfileexist']='Configuration file already exist!';
|
||||||
$string['continue'] = 'Continue';
|
$string['continue'] = 'Continue';
|
||||||
$string['creatingconfigfile'] =' Creating configuration file ...';
|
$string['creatingconfigfile'] =' Creating configuration file ...';
|
||||||
|
$string['ctyperecommended'] = 'Installing the optional ctype PHP extension is highly recommended in order to improve site performance, particularly if your site is supporting non-latin languages.';
|
||||||
|
$string['ctyperequired'] = 'The ctype PHP extension is now required by Moodle, in order to improve site performance and to offer multilingual compatibility.';
|
||||||
$string['curlrecommended'] = 'Installing the optional cURL library is highly recommended in order to enable Moodle Networking functionality.';
|
$string['curlrecommended'] = 'Installing the optional cURL library is highly recommended in order to enable Moodle Networking functionality.';
|
||||||
$string['customcheck'] = 'Other Checks';
|
$string['customcheck'] = 'Other Checks';
|
||||||
$string['database'] = 'Database';
|
$string['database'] = 'Database';
|
||||||
|
|
|
@ -45,6 +45,8 @@ configurationcompletesub
|
||||||
configurationfileexist
|
configurationfileexist
|
||||||
continue
|
continue
|
||||||
creatingconfigfile
|
creatingconfigfile
|
||||||
|
ctyperecommended
|
||||||
|
ctyperequired
|
||||||
curlrecommended
|
curlrecommended
|
||||||
customcheck
|
customcheck
|
||||||
database
|
database
|
||||||
|
|
|
@ -258,6 +258,8 @@ $string['cronerrorclionly'] = 'Sorry, internet access to this page has been disa
|
||||||
$string['cronerrorpassword'] = 'Sorry, you have not provided a valid password to access this page';
|
$string['cronerrorpassword'] = 'Sorry, you have not provided a valid password to access this page';
|
||||||
$string['cronremotepassword'] = 'Cron password for remote access';
|
$string['cronremotepassword'] = 'Cron password for remote access';
|
||||||
$string['cronwarning'] = 'The <a href=\"cron.php\">cron.php maintenance script</a> has not been run for at least 24 hours.';
|
$string['cronwarning'] = 'The <a href=\"cron.php\">cron.php maintenance script</a> has not been run for at least 24 hours.';
|
||||||
|
$string['ctyperecommended'] = 'Installing the optional ctype PHP extension is highly recommended in order to improve site performance, particularly if your site is supporting non-latin languages.';
|
||||||
|
$string['ctyperequired'] = 'The ctype PHP extension is now required by Moodle, in order to improve site performance and to offer multilingual compatibility.';
|
||||||
$string['csvdelimiter'] = 'CSV delimiter';
|
$string['csvdelimiter'] = 'CSV delimiter';
|
||||||
$string['curlrecommended'] = 'Installing the optional cURL library is highly recommended in order to enable Moodle Networking functionality.';
|
$string['curlrecommended'] = 'Installing the optional cURL library is highly recommended in order to enable Moodle Networking functionality.';
|
||||||
$string['customcheck'] = 'Other Checks';
|
$string['customcheck'] = 'Other Checks';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue