Fix #1133 : Permalinks always expose the file extension of the original document

This commit is contained in:
Romain Neutron
2013-03-28 12:19:31 +01:00
parent 4dedcc9f3b
commit 1a393b7dc7
2 changed files with 18 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea
$this->media_subdef->get_record_id(),
$this->media_subdef->get_name(),
$this->get_label(),
pathinfo($this->media_subdef->get_record()->get_original_name(), PATHINFO_EXTENSION),
pathinfo($this->media_subdef->get_file(), PATHINFO_EXTENSION),
$this->get_token()
);
}