mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 22:51:13 +01:00
Merge branch 'develop' into feature/gpm
This commit is contained in:
@@ -56,6 +56,9 @@ class Media extends Getters
|
||||
continue;
|
||||
}
|
||||
|
||||
//set file size
|
||||
$medium->set('size',$info->getSize());
|
||||
|
||||
// Assign meta files to the medium.
|
||||
if ($meta) {
|
||||
$medium->addMetaFile($meta);
|
||||
|
||||
@@ -218,7 +218,10 @@ class Uri
|
||||
*
|
||||
* @return String The extension of the URI
|
||||
*/
|
||||
public function extension() {
|
||||
public function extension($default = null) {
|
||||
if (!$this->extension) {
|
||||
$this->extension = $default;
|
||||
}
|
||||
return $this->extension;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user