mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
commit
c0710d4411
@ -330,10 +330,8 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
|||||||
'extension' => $image->extension,
|
'extension' => $image->extension,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$coverPhoto = 'files/images/' . $fileName;
|
|
||||||
} else {
|
|
||||||
$coverPhoto = $thumbnail->url();
|
|
||||||
}
|
}
|
||||||
|
$coverPhoto = 'files/images/' . $fileName;
|
||||||
} else {
|
} else {
|
||||||
$coverPhoto = null;
|
$coverPhoto = null;
|
||||||
}
|
}
|
||||||
@ -502,8 +500,9 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
|||||||
->paginate(setting_value('visiosoft.module.advs::popular_ads_limit', setting_value('streams::per_page')));
|
->paginate(setting_value('visiosoft.module.advs::popular_ads_limit', setting_value('streams::per_page')));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName($id){
|
public function getName($id)
|
||||||
return $this->find($id)->name;
|
{
|
||||||
|
return $this->find($id)->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function approveAds($adsIDs)
|
public function approveAds($adsIDs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user