Skip to content

Commit

Permalink
MDL-14589: typos corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
scyrma committed Aug 29, 2008
1 parent e125e16 commit 46fcbcf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/file/file_storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function get_file($contextid, $filearea, $itemid, $filepath, $filename) {
* @param bool $includedirs
* @return array of stored_files
*/
public function get_area_files($contextid, $filearea, $itemid=false, $sort="itemid, filepath, filename", $inludedirs=true) {
public function get_area_files($contextid, $filearea, $itemid=false, $sort="itemid, filepath, filename", $includedirs=true) {
global $DB;

$conditions = array('contextid'=>$contextid, 'filearea'=>$filearea);
Expand All @@ -149,7 +149,7 @@ public function get_area_files($contextid, $filearea, $itemid=false, $sort="item
$result = array();
$file_records = $DB->get_records('files', $conditions, $sort);
foreach ($file_records as $file_record) {
if (!$inludedirs and $file_record->filename === '.') {
if (!$includedirs and $file_record->filename === '.') {
continue;
}
$result[] = new stored_file($this, $file_record);
Expand All @@ -164,11 +164,11 @@ public function get_area_files($contextid, $filearea, $itemid=false, $sort="item
* @param int $itemid
* @param int $filepath directory path
* @param bool $recursive include all subdirectories
* @param bool $includedirs inlcude files and directories
* @param bool $includedirs include files and directories
* @param string $sort
* @return array of stored_files
*/
public function get_directory_files($contextid, $filearea, $itemid, $filepath, $recursive=false, $inludedirs=true, $sort="filepath, filename") {
public function get_directory_files($contextid, $filearea, $itemid, $filepath, $recursive=false, $includedirs=true, $sort="filepath, filename") {
global $DB;

if (!$directory = $this->get_file($contextid, $filearea, $itemid, $filepath, '.')) {
Expand All @@ -177,7 +177,7 @@ public function get_directory_files($contextid, $filearea, $itemid, $filepath, $

if ($recursive) {

$dirs = $inludedirs ? "" : "AND filename <> '.'";
$dirs = $includedirs ? "" : "AND filename <> '.'";
$length = textlib_get_instance()->strlen($filepath);

$sql = "SELECT *
Expand Down Expand Up @@ -207,7 +207,7 @@ public function get_directory_files($contextid, $filearea, $itemid, $filepath, $

$length = textlib_get_instance()->strlen($filepath);

if ($inludedirs) {
if ($includedirs) {
$sql = "SELECT *
FROM {files}
WHERE contextid = :contextid AND filearea = :filearea
Expand Down

0 comments on commit 46fcbcf

Please sign in to comment.