Internal optimisations and additional flags for Photo/Video
This commit is contained in:
@@ -11,7 +11,7 @@ class Video extends Abstracted\Catalog
|
||||
|
||||
public function getIDLinkAttribute()
|
||||
{
|
||||
return $this->HTMLLinkAttribute($this->id,url('v/info').'/');
|
||||
return $this->HTMLLinkAttribute($this->id,'v/info');
|
||||
}
|
||||
|
||||
public function getHtmlImageURL()
|
||||
@@ -124,16 +124,6 @@ class Video extends Abstracted\Catalog
|
||||
return isset($data[$key]) ? $data[$key] : NULL;
|
||||
}
|
||||
|
||||
public function setDateCreated()
|
||||
{
|
||||
$this->date_created = $this->property('creationdate');
|
||||
}
|
||||
|
||||
public function setDateCreatedAttribute($value)
|
||||
{
|
||||
$this->attributes['date_created'] = strtotime($value);
|
||||
}
|
||||
|
||||
public function setLocation()
|
||||
{
|
||||
$this->gps_lat = $this->property('gps_lat');
|
||||
@@ -172,8 +162,8 @@ class Video extends Abstracted\Catalog
|
||||
|
||||
public function setSignature()
|
||||
{
|
||||
$this->signature = $this->property('signature');
|
||||
$this->file_signature = md5_file($this->file_path());
|
||||
parent::setSignature();
|
||||
|
||||
$this->identifier = $this->property('identifier');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user