diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-06 12:43:51 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-06 12:43:51 -0800 |
commit | 9a42d63516553e8fcea3190c012ca1237e7cbf0a (patch) | |
tree | a236a1fe58046cc95ee2d803d3e559e3c0365091 | |
parent | 4620eb32d29e1dc4058db66a6caf9f51cf01397b (diff) | |
parent | 1c8f63f1e50726c00220cfd98f259d2d35d37106 (diff) | |
download | volse-hubzilla-9a42d63516553e8fcea3190c012ca1237e7cbf0a.tar.gz volse-hubzilla-9a42d63516553e8fcea3190c012ca1237e7cbf0a.tar.bz2 volse-hubzilla-9a42d63516553e8fcea3190c012ca1237e7cbf0a.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts:
boot.php
install/update.php
-rwxr-xr-x | boot.php | 3 | ||||
-rw-r--r-- | install/update.php | 20 | ||||
-rw-r--r-- | util/messages.po | 12 |
3 files changed, 27 insertions, 8 deletions
@@ -50,7 +50,8 @@ define ( 'PLATFORM_NAME', 'hubzilla' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'H'); define ( 'ZOT_REVISION', 1 ); -define ( 'DB_UPDATE_VERSION', 1159 ); +define ( 'DB_UPDATE_VERSION', 1160 ); + /** * @brief Constant with a HTML line break. diff --git a/install/update.php b/install/update.php index 38e76afda..10ae6725e 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1159 ); +define( 'UPDATE_VERSION' , 1160 ); /** * @@ -1932,3 +1932,21 @@ function update_r1158() { } +function update_r1159() { + $r = q("select attach.id, attach.data, attach.hash, channel_address from attach left join channel on attach.uid = channel_id where os_storage = 1 "); + if($r) { + foreach($r as $rr) { + $x = dbunescbin($rr['data']); + $has_slash = (($x === 'store/' . $rr['channel_address'] . '/') ? true : false); + if(($x === 'store/' . $rr['channel_address']) || ($has_slash)) { + q("update attach set data = '%s' where id = %d", + dbesc('store/' . $rr['channel_address']. (($has_slash) ? '' : '/' . $rr['hash'])), + dbesc($rr['id']) + ); + } + } + } + return UPDATE_SUCCESS; +} + + diff --git a/util/messages.po b/util/messages.po index 9693476e9..f3c9782f3 100644 --- a/util/messages.po +++ b/util/messages.po @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: 2015-10-30.1201\n" +"Project-Id-Version: 2015-11-06.1208\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-30 00:04-0700\n" +"POT-Creation-Date: 2015-11-06 00:04-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -22,7 +22,7 @@ msgstr "" msgid "Cannot locate DNS info for database server '%s'" msgstr "" -#: ../../include/photo/photo_driver.php:694 ../../mod/profile_photo.php:143 +#: ../../include/photo/photo_driver.php:703 ../../mod/profile_photo.php:143 #: ../../mod/profile_photo.php:302 ../../mod/profile_photo.php:424 #: ../../mod/photos.php:92 ../../mod/photos.php:637 msgid "Profile Photos" @@ -2798,15 +2798,15 @@ msgstr "" msgid "Connection not found." msgstr "" -#: ../../include/zot.php:684 +#: ../../include/zot.php:685 msgid "Invalid data packet" msgstr "" -#: ../../include/zot.php:700 +#: ../../include/zot.php:701 msgid "Unable to verify channel signature" msgstr "" -#: ../../include/zot.php:2208 +#: ../../include/zot.php:2209 #, php-format msgid "Unable to verify site signature for %s" msgstr "" |