diff --git a/admin/cli/install.php b/admin/cli/install.php index c86dcf22e17..591ea86af05 100644 --- a/admin/cli/install.php +++ b/admin/cli/install.php @@ -106,7 +106,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/dbtransfer/lib.php b/admin/dbtransfer/lib.php index de868b352e2..04f021d969b 100644 --- a/admin/dbtransfer/lib.php +++ b/admin/dbtransfer/lib.php @@ -13,7 +13,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/uploaduser.php b/admin/uploaduser.php index 3ee02a3ef36..4e3214ce95d 100644 --- a/admin/uploaduser.php +++ b/admin/uploaduser.php @@ -231,7 +231,7 @@ if ($formdata = $mform2->is_cancelled()) { } } if (!isset($user->username)) { - // prevent warnings bellow + // prevent warnings below $user->username = ''; } diff --git a/course/report/stats/graph.php b/course/report/stats/graph.php index d3b1659464c..1ebb27542b7 100644 --- a/course/report/stats/graph.php +++ b/course/report/stats/graph.php @@ -153,7 +153,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/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 5b0da252b72..e836aa2bde3 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 60710f91806..4dcf606a90c 100644 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -368,7 +368,7 @@ function get_role_context_caps($roleid, $context) { } } - // now go through the contexts bellow given context + // now go through the contexts below given context $searchcontexts = array_keys(get_child_contexts($context)); foreach ($searchcontexts as $cid) { if ($capabilities = $DB->get_records('role_capabilities', array('roleid'=>$roleid, 'contextid'=>$cid))) { @@ -3748,13 +3748,13 @@ function fetch_context_capabilities($context) { OR name $extra"; break; - case CONTEXT_COURSECAT: // course category context and bellow + case CONTEXT_COURSECAT: // course category context and below $SQL = "SELECT * FROM {capabilities} WHERE contextlevel IN (".CONTEXT_COURSECAT.",".CONTEXT_COURSE.",".CONTEXT_MODULE.",".CONTEXT_BLOCK.")"; break; - case CONTEXT_COURSE: // course context and bellow + case CONTEXT_COURSE: // course context and below $SQL = "SELECT * FROM {capabilities} WHERE contextlevel IN (".CONTEXT_COURSE.",".CONTEXT_MODULE.",".CONTEXT_BLOCK.")"; diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 82bbb335eee..9e979055edb 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2914,7 +2914,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 7833a3aa542..533be354d9e 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7364,7 +7364,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_SAFEDIR); 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/user/view.php b/user/view.php index ce82f8ed4cc..abd846e6bf8 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);