]> git.mxchange.org Git - friendica.git/commitdiff
re-opened bug #363
authorfriendica <info@friendica.com>
Wed, 4 Apr 2012 03:14:37 +0000 (20:14 -0700)
committerfriendica <info@friendica.com>
Wed, 4 Apr 2012 03:14:37 +0000 (20:14 -0700)
mod/admin.php

index 8caa763707b45c0106006022f99e461813536f10..a395027c11604110f22864e7bcc8fa5fe68358d7 100755 (executable)
@@ -222,6 +222,11 @@ function admin_page_site_post(&$a){
                                `poco`    = replace(`poco`   , 'http:' , 'https:')
                                where `self` = 1"
                        );
+                       q("update `profile` set 
+                               `photo`   = replace(`photo`  , 'http:' , 'https:'),
+                               `thumb`   = replace(`thumb`  , 'http:' , 'https:')
+                               where 1 "
+                       );
                }
                elseif($ssl_policy == SSL_POLICY_SELFSIGN) {
                        q("update `contact` set 
@@ -236,6 +241,11 @@ function admin_page_site_post(&$a){
                                `poco`    = replace(`poco`   , 'https:' , 'http:')
                                where `self` = 1"
                        );
+                       q("update `profile` set 
+                               `photo`   = replace(`photo`  , 'https:' , 'http:'),
+                               `thumb`   = replace(`thumb`  , 'https:' , 'http:')
+                               where 1 "
+                       );
                }
        }
        set_config('system','ssl_policy',$ssl_policy);