diff --git a/admin/cli/install.php b/admin/cli/install.php index b812aaf94a2..dc65e318d14 100644 --- a/admin/cli/install.php +++ b/admin/cli/install.php @@ -109,7 +109,7 @@ if (file_exists($configfile)) { $olddir = getcwd(); -// change directory so that includes bellow work properly +// change directory so that includes below work properly chdir(dirname($_SERVER['argv'][0])); // Servers should define a default timezone in php.ini, but if they don't then make sure something is defined. diff --git a/admin/tool/dbtransfer/locallib.php b/admin/tool/dbtransfer/locallib.php index 62a34ae3223..f36ceef614a 100644 --- a/admin/tool/dbtransfer/locallib.php +++ b/admin/tool/dbtransfer/locallib.php @@ -37,7 +37,7 @@ TODO: (user would need file access to dataroot which might prevent various "accidents") - implement "Export/import running" notification in lib/setup.php (similar to new upgrade flag in config table) - gzip compression when storing xml file - the xml is very verbose and full of repeated tags (zip is not suitable here at all) - this could help us keep the files bellow 2G (expected ratio is > 10:1) + this could help us keep the files below 2G (expected ratio is > 10:1) */ diff --git a/admin/tool/uploaduser/index.php b/admin/tool/uploaduser/index.php index a0a69b08134..633b5f2f4e2 100644 --- a/admin/tool/uploaduser/index.php +++ b/admin/tool/uploaduser/index.php @@ -239,7 +239,7 @@ if ($formdata = $mform2->is_cancelled()) { } } if (!isset($user->username)) { - // prevent warnings bellow + // prevent warnings below $user->username = ''; } diff --git a/enrol/category/db/access.php b/enrol/category/db/access.php index d18e55a4ba5..8c24b969507 100644 --- a/enrol/category/db/access.php +++ b/enrol/category/db/access.php @@ -28,7 +28,7 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( // marks roles that have category role assignments synchronised to course enrolments - // overrides bellow system context are ignored (for performance reasons). + // overrides below system context are ignored (for performance reasons). // by default his is not allowed in new installs, admins have to explicitly allow category enrolments 'enrol/category:synchronised' => array( 'captype' => 'write', diff --git a/filter/mediaplugin/filter.php b/filter/mediaplugin/filter.php index e1e61cab5b7..cb4a75166de 100644 --- a/filter/mediaplugin/filter.php +++ b/filter/mediaplugin/filter.php @@ -74,7 +74,7 @@ class filter_mediaplugin extends moodle_text_filter { return $text; } if (stripos($text, '') === false) { - // performance shortcut - all regexes bellow end with the tag, + // performance shortcut - all regexes below end with the tag, // if not present nothing can match return $text; } @@ -281,7 +281,7 @@ function filter_mediaplugin_html5audio_callback(array $link) { $sources[] = html_writer::tag('source', '', array('src' => $url, 'type' => $mimetype)); if ($fallbacklink === null) { - $fallbacklink = html_writer::link($url.'#', $info); // the extra '#' prevents linking in mp3 filter bellow + $fallbacklink = html_writer::link($url.'#', $info); // the extra '#' prevents linking in mp3 filter below } if ($fallbackurl === null) { if ($mimetype === 'audio/mp3' or $mimetype === 'audio/aac') { @@ -379,7 +379,7 @@ function filter_mediaplugin_html5video_callback(array $link) { } if ($fallbacklink === null) { - $fallbacklink = html_writer::link($url.'#', $info); // the extra '#' prevents linking in mp3 filter bellow + $fallbacklink = html_writer::link($url.'#', $info); // the extra '#' prevents linking in mp3 filter below } if ($fallbackurl === null) { if ($mimetype === 'video/mp4') { diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index bcacf6d0adf..7c9fb383c3a 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -163,7 +163,7 @@ class grade_report_grader extends grade_report { $separategroups = true; $mygroups = groups_get_user_groups($this->course->id); $mygroups = $mygroups[0]; // ignore groupings - // reorder the groups fro better perf bellow + // reorder the groups fro better perf below $current = array_search($this->currentgroup, $mygroups); if ($current !== false) { unset($mygroups[$current]); diff --git a/lib/accesslib.php b/lib/accesslib.php index 9ca574d5232..29aac48d357 100644 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -7208,7 +7208,7 @@ function get_role_context_caps($roleid, context $context) { } } - // now go through the contexts bellow given context + // now go through the contexts below given context $searchcontexts = array_keys($context->get_child_contexts()); foreach ($searchcontexts as $cid) { if ($capabilities = $DB->get_records('role_capabilities', array('roleid'=>$roleid, 'contextid'=>$cid))) { diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index caca96abd47..52e6d5b90ef 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2880,7 +2880,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); $DB->delete_records('role_capabilities', array('capability'=>'moodle/site:config', 'roleid'=>$manager->id)); // only site admins may configure servers // note: doanything and legacy caps are deleted automatically, they get moodle/course:view later at the end of the upgrade - // remove manager role assignments bellow the course context level - admin role was never intended for activities and blocks, + // remove manager role assignments below the course context level - admin role was never intended for activities and blocks, // the problem is that those assignments would not be visible after upgrade and old style admins in activities make no sense anyway $DB->delete_records_select('role_assignments', "roleid = :manager AND contextid IN (SELECT id FROM {context} WHERE contextlevel > 50)", array('manager'=>$manager->id)); diff --git a/lib/htmlpurifier/HTMLPurifier/Lexer/PH5P.php b/lib/htmlpurifier/HTMLPurifier/Lexer/PH5P.php index faf00b82913..6f3a13702d2 100644 --- a/lib/htmlpurifier/HTMLPurifier/Lexer/PH5P.php +++ b/lib/htmlpurifier/HTMLPurifier/Lexer/PH5P.php @@ -1113,7 +1113,7 @@ class HTML5 { $entity = $this->character($start, $this->char); $cond = strlen($e_name) > 0; - // The rest of the parsing happens bellow. + // The rest of the parsing happens below. break; // Anything else @@ -1140,7 +1140,7 @@ class HTML5 { } $cond = isset($entity); - // The rest of the parsing happens bellow. + // The rest of the parsing happens below. break; } diff --git a/lib/moodlelib.php b/lib/moodlelib.php index fa879583469..1b9aa78c7a5 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7827,7 +7827,7 @@ function plugin_callback($type, $name, $feature, $action, $params = null, $defau * @return mixed */ function component_callback($component, $function, array $params = array(), $default = null) { - global $CFG; // this is needed for require_once() bellow + global $CFG; // this is needed for require_once() below $cleancomponent = clean_param($component, PARAM_COMPONENT); if (empty($cleancomponent)) { diff --git a/mod/url/lang/en/url.php b/mod/url/lang/en/url.php index 9e954a8c409..b152259ddf7 100644 --- a/mod/url/lang/en/url.php +++ b/mod/url/lang/en/url.php @@ -64,7 +64,7 @@ $string['popupwidthexplain'] = 'Specifies default width of popup windows.'; $string['printheading'] = 'Display URL name'; $string['printheadingexplain'] = 'Display URL name above content? Some display types may not display URL name even if enabled.'; $string['printintro'] = 'Display URL description'; -$string['printintroexplain'] = 'Display URL description bellow content? Some display types may not display description even if enabled.'; +$string['printintroexplain'] = 'Display URL description below content? Some display types may not display description even if enabled.'; $string['rolesinparams'] = 'Include role names in parameters'; $string['serverurl'] = 'Server URL'; $string['url:view'] = 'View URL'; diff --git a/report/stats/graph.php b/report/stats/graph.php index 89c1800868b..83411ec736f 100644 --- a/report/stats/graph.php +++ b/report/stats/graph.php @@ -157,7 +157,7 @@ if (empty($param->crosstab)) { } $roleid = 0; - krsort($roles); // the same sorting as in table bellow graph + krsort($roles); // the same sorting as in table below graph $colors = array('green', 'blue', 'red', 'purple', 'yellow', 'olive', 'navy', 'maroon', 'gray', 'ltred', 'ltltred', 'ltgreen', 'ltltgreen', 'orange', 'ltorange', 'ltltorange', 'lime', 'ltblue', 'ltltblue', 'fuchsia', 'aqua', 'grayF0', 'grayEE', 'grayDD', 'grayCC', 'gray33', 'gray66', 'gray99'); $colorindex = 0; diff --git a/user/view.php b/user/view.php index cb534911bc4..59cbcb32deb 100644 --- a/user/view.php +++ b/user/view.php @@ -57,7 +57,7 @@ if (isguestuser($user)) { } if (!empty($CFG->forceloginforprofiles)) { - require_login(); // we can not log in to course due to the parent hack bellow + require_login(); // we can not log in to course due to the parent hack below } $PAGE->set_context($coursecontext);