Skip to content

Commit

Permalink
Update User Default Photo location for new installs
Browse files Browse the repository at this point in the history
Related to #888
  • Loading branch information
eSilverStrike committed Sep 13, 2018
1 parent 944f275 commit f707142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public_html/admin/install/classes/installer.class.php
Expand Up @@ -4718,7 +4718,7 @@ private function installEngine($installType, $installStep)
$config->set('path_editors', $this->env['html_path'] . 'editors/');
$config->set('rdf_file', $this->env['html_path'] . 'backend/geeklog.rss');
$config->set('cookie_path', $this->guessCookiePath(urldecode($site_url)));
$config->set_default('default_photo', urldecode($site_url) . '/default.jpg');
$config->set_default('default_photo', urldecode($site_url) . '/images/userphotos/default.png');

$lng = $this->getDefaultLanguage($gl_path . 'language/', $this->env['language'], $utf8);

Expand Down Expand Up @@ -4802,7 +4802,7 @@ private function installEngine($installType, $installStep)
$config->set('site_admin_url', urldecode($site_admin_url));
$config->set('site_mail', urldecode($site_mail));
$config->set('noreply_mail', urldecode($noreply_mail));
$config->set_default('default_photo', urldecode($site_url) . '/default.jpg');
$config->set_default('default_photo', urldecode($site_url) . '/images/userphotos/default.png');
} else {
$site_url = $this->post('site_url', $this->get('site_url', ''));
$site_admin_url = $this->post('site_admin_url', $this->get('site_admin_url', ''));
Expand Down
2 changes: 1 addition & 1 deletion public_html/admin/install/config-install.php
Expand Up @@ -353,7 +353,7 @@ function install_config()
$c->add('max_photo_height',128,'text',5,26,NULL,1580,TRUE, $me, 26);
$c->add('max_photo_size',65536,'text',5,26,NULL,1590,TRUE, $me, 26);
$c->add('force_photo_width',75,'text',5,26,NULL,1620,FALSE, $me, 26);
$c->add('default_photo','http://example.com/default.jpg','text',5,26,NULL,1630,FALSE, $me, 26);
$c->add('default_photo','http://example.com/images/userphotos/default.png','text',5,26,NULL,1630,FALSE, $me, 26);

$c->add('tab_gravatar', NULL, 'tab', 5, 27, NULL, 0, TRUE, $me, 27);
$c->add('fs_gravatar', NULL, 'fieldset', 5, 27, NULL, 0, TRUE, $me, 27);
Expand Down

0 comments on commit f707142

Please sign in to comment.