require_once "view/theme/$theme/config.php";
if (function_exists('theme_admin_post')) {
self::checkFormSecurityTokenRedirectOnError('/admin/themes/' . $theme . '/embed?mode=minimal', 'admin_theme_settings');
- theme_admin_post($this->appHelper);
+ theme_admin_post();
}
}
}
}
- if (empty($timeline) || empty($last_read_id) || empty($application['id'])) {
+ if ($timeline === '' || $last_read_id === '' || empty($application['id'])) {
$this->logAndJsonError(422, $this->errorFactory->UnprocessableEntity());
}
$target_cid = BaseApi::getContactIDForSearchterm($this->getRequestValue($request, 'target_screen_name', ''), '', $this->getRequestValue($request, 'target_id', 0), $uid);
$source = Contact::getById($source_cid);
- if (empty($source)) {
+ if ($source === false) {
throw new NotFoundException('Source not found');
}
$target = Contact::getById($target_cid);
- if (empty($source)) {
+ if ($target === false) {
throw new NotFoundException('Target not found');
}
$notif_tpl = Renderer::getMarkupTemplate('notifications/notifications.tpl');
return Renderer::replaceMacros($notif_tpl, [
- '$header' => $header ?? $this->t('Notifications'),
+ '$header' => $header ?: $this->t('Notifications'),
'$tabs' => $tabs,
'$notifications' => $notifications,
'$noContent' => $noContent,
$share = intval($request['share'] ?? 0);
$isPreview = intval($request['preview'] ?? 0);
- $start = DateTimeFormat::convert($strStartDateTime ?? DBA::NULL_DATETIME, 'UTC', $this->timezone);
+ $start = DateTimeFormat::convert($strStartDateTime, 'UTC', $this->timezone);
if (!$noFinish) {
- $finish = DateTimeFormat::convert($strFinishDateTime ?? DBA::NULL_DATETIME, 'UTC', $this->timezone);
+ $finish = DateTimeFormat::convert($strFinishDateTime, 'UTC', $this->timezone);
} else {
$finish = DBA::NULL_DATETIME;
}
throw new \Exception(DI::l10n()->t('Permission denied.'), 403);
}
+ $message = '';
+
if (isset($this->parameters['command'])) {
$circle_id = $this->parameters['circle'];
$contact_id = $this->parameters['contact'];
]);
}
- $nocircle = false;
+ $nocircle = false;
+ $members = [];
+ $preselected = [];
// @TODO: Replace with parameter from router
if ((DI::args()->getArgc() == 2) && (DI::args()->getArgv()[1] === 'none') ||
'name' => DI::l10n()->t('Contacts not in any circle'),
];
- $members = [];
- $preselected = [];
-
$context = $context + [
'$title' => $circle['name'],
'$gname' => ['circle_name', DI::l10n()->t('Circle Name: '), $circle['name'], ''],
return clean_form($appHelper, $colorset, $user);
}
-function theme_admin_post(AppHelper $appHelper)
+function theme_admin_post()
{
if (isset($_POST['duepuntozero-settings-submit'])) {
DI::config()->set('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
return quattro_form($appHelper,$align, $color, $tfs, $pfs);
}
-function theme_admin_post(AppHelper $appHelper) {
+function theme_admin_post() {
if (isset($_POST['quattro-settings-submit'])){
DI::config()->set('quattro', 'align', $_POST['quattro_align']);
DI::config()->set('quattro', 'color', $_POST['quattro_color']);
return $o;
}
-function theme_admin_post(AppHelper $appHelper) {
+function theme_admin_post() {
if (isset($_POST['vier-settings-submit'])){
DI::config()->set('vier', 'style', $_POST['vier_style']);
DI::config()->set('vier', 'show_pages', $_POST['vier_show_pages']);