summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-18 18:06:55 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-18 18:06:55 +0100
commit00700eed01f6827add0a9a75aea652ba7ad213ed (patch)
tree8c33294f84124c3f675a09c07fa4cfd3e68448fb
parent7caeb19c1c9a179beeb1dc58d2c2890a43583bee (diff)
fix left over mime2extension call and comments
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/models/file_mod.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index 2e51d5544..b979a0043 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -115,7 +115,7 @@ class File_mod extends CI_Model {
$filedata = $this->get_filedata($id);
$file = $this->file($filedata['hash']);
$type = $filedata['mimetype'];
- $mode = $this->mime2extension($type);
+ $mode = $this->mime2mode($type);
// If we detected a highlightable file redirect,
// otherwise show the URL because browsers would just show a DL dialog
@@ -408,7 +408,7 @@ class File_mod extends CI_Model {
return $mode;
}
- // Map MIME types to extensions needed for highlighting
+ // Map MIME types to modes needed for highlighting
private function mime2mode($type)
{
$typearray = array(
@@ -458,7 +458,7 @@ class File_mod extends CI_Model {
return false;
}
- // Map special filenames to extensions
+ // Map special filenames to modes
private function filename2mode($name)
{
$namearray = array(
@@ -470,7 +470,7 @@ class File_mod extends CI_Model {
return false;
}
- // Handle alias extensions
+ // Handle mode aliases
function resolve_mode_alias($alias)
{
if ($alias === false) return false;