blob: 9765182cc8b202be5ea5977fabbeb34c26c70f2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* Updates the basic settings for the primary site object.
*
* Basic site settings are saved as metadata on the site object,
* with the exception of the default language, which is saved in
* the config table.
*
* @package Elgg.Core
* @subpackage Administration.Site
*/
if ($site = elgg_get_site_entity()) {
if (!($site instanceof ElggSite)) {
throw new InstallationException(elgg_echo('InvalidParameterException:NonElggSite'));
}
$site->description = get_input('sitedescription');
$site->name = strip_tags(get_input('sitename'));
$site->email = get_input('siteemail');
$site->save();
set_config('language', get_input('language'), $site->getGUID());
}
system_message(elgg_echo('admin:configuration:success'));
forward(REFERER);
|