mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 13:15:14 +00:00
Merge branch 'master' of https://github.com/redmatrix/redmatrix
This commit is contained in:
commit
1e3dffc29d
1 changed files with 14 additions and 0 deletions
|
@ -103,6 +103,20 @@ function import_post(&$a) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(array_key_exists('compatibility',$data) && array_key_exists('database',$data['compatibility'])) {
|
||||||
|
$v1 = substr($data['compatibility']['database'],-4);
|
||||||
|
$v2 = substr(DB_UPDATE_VERSION,-4);
|
||||||
|
if($data['compatibility']['project'] !== PLATFORM_NAME) {
|
||||||
|
notice( t('The data provided is not compatible with this project.') );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($v2 > $v1) {
|
||||||
|
$t = sprintf( t('Warning: Database versions differ by %1$d updates.'), $v2 - $v1 );
|
||||||
|
notice($t);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// import channel
|
// import channel
|
||||||
|
|
||||||
$channel = $data['channel'];
|
$channel = $data['channel'];
|
||||||
|
|
Loading…
Reference in a new issue