From: skodak Date: Sun, 1 Feb 2009 13:36:07 +0000 (+0000) Subject: fixed whitespace X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b3d960e64a90ff01efa563b12b999e4dea985bfb;p=moodle.git fixed whitespace --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 6afaae8401..86fcb05652 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -820,7 +820,7 @@ function unset_all_config_for_plugin($plugin) { /** * Use this funciton to get a list of users from a config setting of type admin_setting_users_with_capability. - * @param string $value the value of the config setting. + * @param string $value the value of the config setting. * @param string $capability the capability - must match the one passed to the admin_setting_users_with_capability constructor. * @return array of user objects. */ @@ -2037,11 +2037,11 @@ function require_login($courseorid=0, $autologinguest=true, $cm=null, $setwantsu // in for rest of session, no need to do conditional checks if(!array_key_exists($cm->id,$SESSION->conditionaccessok)) { // Get condition info (does a query for the availability table) - require_once($CFG->libdir.'/conditionlib.php'); + require_once($CFG->libdir.'/conditionlib.php'); $ci=new condition_info($cm,CONDITION_MISSING_EXTRATABLE); // Check condition for user (this will do a query if the availability // information depends on grade or completion information) - if($ci->is_available($junk) || + if($ci->is_available($junk) || has_capability('moodle/course:viewhiddenactivities', $COURSE->context)) { $SESSION->conditionaccessok[$cm->id]=true; } else { @@ -7685,7 +7685,7 @@ function cleanremoteaddr($addr, $compress=false) { return null; } unset($parts[0]); - + foreach ($parts as $key=>$match) { if ($match > 255) { return null;