From: vyshane Date: Thu, 5 Oct 2006 08:47:13 +0000 (+0000) Subject: Some small formatting changes. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=35b974dae62707648d453aa915c482efd7948f81;p=moodle.git Some small formatting changes. Added some missing semi-colons in js code. --- diff --git a/lib/ajax/ajaxlib.php b/lib/ajax/ajaxlib.php index e191103b63..7000b8505c 100644 --- a/lib/ajax/ajaxlib.php +++ b/lib/ajax/ajaxlib.php @@ -1,10 +1,9 @@ wwwroot.''.$translatelist[$list[$i]]."'>\n\r"; + echo "\n"; } else { - echo "\n\r"; + echo "\n"; } } } -//used to create view of document to be passed to javascript on pageload + +/** + * Used to create view of document to be passed to javascript on pageload. + */ class jsportal{ var $currentblocksection = null; @@ -40,15 +42,17 @@ class jsportal{ var $output = ''; - //takes id of block and adds it - function block_add($id,$hidden=false){ + /** + * Takes id of block and adds it + */ + function block_add($id, $hidden=false){ $hidden_binary = 0; if ($hidden) { $hidden_binary = 1; } - $this->blocks[count($this->blocks)] = array($this->currentblocksection,$id,$hidden_binary); + $this->blocks[count($this->blocks)] = array($this->currentblocksection, $id, $hidden_binary); } @@ -56,21 +60,21 @@ class jsportal{ global $CFG; $blocksoutput = $output = ''; - for ($i=0;$iblocks);$i++) { - $blocksoutput.="['".$this->blocks[$i][0]."','".$this->blocks[$i][1]."','".$this->blocks[$i][2]."']"; + for ($i=0; $iblocks); $i++) { + $blocksoutput .= "['".$this->blocks[$i][0]."','".$this->blocks[$i][1]."','".$this->blocks[$i][2]."']"; if ($i != (count($this->blocks)-1)) { - $blocksoutput.=","; + $blocksoutput .= ','; } } - $output .=""; + $output .= ""; echo $output; } }