Remove sync media functions (glitchy)
This commit is contained in:
@@ -146,20 +146,6 @@ class Media extends PhpObject {
|
||||
return Spot::getResult(($sError==''), $sError, $asParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* One-shot function to initialize DB with existing images
|
||||
*/
|
||||
public function syncFileFolder() {
|
||||
$asMediaPaths = glob(self::getMediaPath('*.{jpg,JPG,jpeg,JPEG,png,PNG,mov,MOV}'), GLOB_BRACE);
|
||||
foreach($asMediaPaths as $sMediaPath)
|
||||
{
|
||||
$sMediaName = pathinfo($sMediaPath, PATHINFO_BASENAME);
|
||||
$this->addMedia($sMediaName, 'sync');
|
||||
}
|
||||
$this->setExtractMode(PhpObject::MODE_HTML);
|
||||
return $this->getCleanMessageStack();
|
||||
}
|
||||
|
||||
private function getMediaInfoFromFile($sMediaName)
|
||||
{
|
||||
$sMediaPath = self::getMediaPath($sMediaName);
|
||||
|
||||
Reference in New Issue
Block a user