mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
fixed phpdocs and incorrect exception names
This commit is contained in:
parent
08b4939be9
commit
8a680500c6
3 changed files with 5 additions and 5 deletions
|
@ -116,7 +116,7 @@ abstract class file_archive implements Iterator {
|
||||||
/**
|
/**
|
||||||
* Tries to convert $localname into another encoding,
|
* Tries to convert $localname into another encoding,
|
||||||
* please note that it may fail really badly.
|
* please note that it may fail really badly.
|
||||||
* @param strin $localname in utf-8 encoding
|
* @param string $localname in utf-8 encoding
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function mangle_pathname($localname) {
|
protected function mangle_pathname($localname) {
|
||||||
|
|
|
@ -614,7 +614,7 @@ class file_storage {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$newrecord->id = $DB->insert_record('files', $newrecord);
|
$newrecord->id = $DB->insert_record('files', $newrecord);
|
||||||
} catch (database_exception $e) {
|
} catch (dml_exception $e) {
|
||||||
$newrecord->id = false;
|
$newrecord->id = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -758,7 +758,7 @@ class file_storage {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$newrecord->id = $DB->insert_record('files', $newrecord);
|
$newrecord->id = $DB->insert_record('files', $newrecord);
|
||||||
} catch (database_exception $e) {
|
} catch (dml_exception $e) {
|
||||||
$newrecord->id = false;
|
$newrecord->id = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -851,7 +851,7 @@ class file_storage {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$newrecord->id = $DB->insert_record('files', $newrecord);
|
$newrecord->id = $DB->insert_record('files', $newrecord);
|
||||||
} catch (database_exception $e) {
|
} catch (dml_exception $e) {
|
||||||
$newrecord->id = false;
|
$newrecord->id = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ class zip_archive extends file_archive {
|
||||||
/**
|
/**
|
||||||
* Returns file stream for reading of content
|
* Returns file stream for reading of content
|
||||||
* @param int $index of file
|
* @param int $index of file
|
||||||
* @return stream or false if error
|
* @return resource or false if error
|
||||||
*/
|
*/
|
||||||
public function get_stream($index) {
|
public function get_stream($index) {
|
||||||
if (!isset($this->za)) {
|
if (!isset($this->za)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue