diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-09-13 10:30:08 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-09-13 10:30:08 +0200 |
commit | 29b0ed87d61ae7c5fae5a43ad667cefce3938e25 (patch) | |
tree | d94df5802569f08b4b640a5763a2ea27b2d49743 /install | |
parent | 87ca60b0b128bf12b611146264159377baca71a3 (diff) | |
parent | 0e6d84e20731f173e489fe0d54b43c01266c0391 (diff) | |
download | volse-hubzilla-29b0ed87d61ae7c5fae5a43ad667cefce3938e25.tar.gz volse-hubzilla-29b0ed87d61ae7c5fae5a43ad667cefce3938e25.tar.bz2 volse-hubzilla-29b0ed87d61ae7c5fae5a43ad667cefce3938e25.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'install')
-rw-r--r-- | install/update.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index ce9a50913..8c9f83033 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1194 ); +define( 'UPDATE_VERSION' , 1195 ); /** * @@ -2992,3 +2992,19 @@ function update_r1193() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + + +function update_r1194() { + $r = q("select id, resource_id from item where resource_type = 'nwiki'"); + if($r) { + foreach($r as $rv) { + $mimetype = get_iconfig($rv['id'],'wiki','mimeType'); + q("update item set mimetype = '%s' where resource_type = 'nwikipage' and resource_id = '%s'", + dbesc($mimetype), + dbesc($rv['resource_id']) + ); + } + } + + return UPDATE_SUCCESS; +}
\ No newline at end of file |