Update UUID
This commit is contained in:
parent
210f4c92d4
commit
7f9094b25b
|
@ -32,6 +32,12 @@ function updateBludit()
|
||||||
$checksum = md5_file(PATH_POSTS.$key.DS.FILENAME);
|
$checksum = md5_file(PATH_POSTS.$key.DS.FILENAME);
|
||||||
$dbPosts->setPostDb($key, 'md5file', $checksum);
|
$dbPosts->setPostDb($key, 'md5file', $checksum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UUID
|
||||||
|
if( empty($post['uuid']) ) {
|
||||||
|
$uuid = uniqid();
|
||||||
|
$dbPosts->setPostDb($key, 'uuid', $uuid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$dbPosts->save();
|
$dbPosts->save();
|
||||||
|
@ -48,10 +54,16 @@ function updateBludit()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checksum
|
// Checksum
|
||||||
if( empty($post['md5file']) ) {
|
if( empty($page['md5file']) ) {
|
||||||
$checksum = md5_file(PATH_PAGES.$key.DS.FILENAME);
|
$checksum = md5_file(PATH_PAGES.$key.DS.FILENAME);
|
||||||
$dbPages->setPageDb($key, 'md5file', $checksum);
|
$dbPages->setPageDb($key, 'md5file', $checksum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UUID
|
||||||
|
if( empty($page['uuid']) ) {
|
||||||
|
$uuid = uniqid();
|
||||||
|
$dbPages->setPostDb($key, 'uuid', $uuid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$dbPages->save();
|
$dbPages->save();
|
||||||
|
|
Loading…
Reference in New Issue