Add Install Mode

- merge `friendica/develop` to `nupplaphil/install_mode`
This commit is contained in:
Philipp Holzer 2018-04-29 20:15:12 +02:00
commit b4f5311e7f
18 changed files with 7851 additions and 7830 deletions

View file

@ -513,7 +513,7 @@ function load_view_file($s) {
return $content;
}
$theme = current_theme();
$theme = $a->getCurrentTheme();
if (file_exists("$d/theme/$theme/$b")) {
$stamp1 = microtime(true);
@ -1249,7 +1249,7 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
// Compile eventual content filter reasons
$filter_reasons = [];
if (!$is_preview && !($item['self'] && local_user() == $item['uid'])) {
if (!$is_preview && public_contact() != $item['author-id']) {
if (!empty($item['content-warning']) && (!local_user() || !PConfig::get(local_user(), 'system', 'disable_cw', false))) {
$filter_reasons[] = L10n::t('Content warning: %s', $item['content-warning']);
}