mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Review changes
Replacements for ::delete() as well as changes to include use statements.
This commit is contained in:
parent
1a83b80dbd
commit
b995e858e6
6 changed files with 21 additions and 19 deletions
|
@ -944,7 +944,7 @@ function admin_page_site_post(App $a) {
|
|||
}
|
||||
|
||||
if ($info == "") {
|
||||
del_config('config','info');
|
||||
Config::delete('config','info');
|
||||
} else {
|
||||
Config::set('config','info',$info);
|
||||
}
|
||||
|
@ -952,12 +952,12 @@ function admin_page_site_post(App $a) {
|
|||
Config::set('system','theme', $theme);
|
||||
|
||||
if ($theme_mobile == '---') {
|
||||
del_config('system','mobile-theme');
|
||||
Config::delete('system','mobile-theme');
|
||||
} else {
|
||||
Config::set('system','mobile-theme', $theme_mobile);
|
||||
}
|
||||
if ($singleuser == '---') {
|
||||
del_config('system','singleuser');
|
||||
Config::delete('system','singleuser');
|
||||
} else {
|
||||
Config::set('system','singleuser', $singleuser);
|
||||
}
|
||||
|
@ -1048,7 +1048,7 @@ function admin_page_site(App $a) {
|
|||
if (strlen(Config::get('system','directory_submit_url')) &&
|
||||
!strlen(Config::get('system','directory'))) {
|
||||
Config::set('system','directory', dirname(Config::get('system','directory_submit_url')));
|
||||
del_config('system','directory_submit_url');
|
||||
Config::delete('system','directory_submit_url');
|
||||
}
|
||||
|
||||
/* Installed themes */
|
||||
|
@ -2239,7 +2239,7 @@ function admin_page_features_post(App $a) {
|
|||
if (x($_POST, $featurelock)) {
|
||||
Config::set('feature_lock', $feature, $val);
|
||||
} else {
|
||||
del_config('feature_lock', $feature);
|
||||
Config::delete('feature_lock', $feature);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Network\Probe;
|
||||
|
||||
require_once 'include/contact_widgets.php';
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/socgraph.php';
|
||||
require_once 'include/Contact.php';
|
||||
require_once 'include/contact_selectors.php';
|
||||
|
|
|
@ -53,8 +53,8 @@ function ostatus_subscribe_content(App $a) {
|
|||
|
||||
if ($counter >= $total) {
|
||||
$a->page['htmlhead'] = '<meta http-equiv="refresh" content="0; URL='.System::baseUrl().'/settings/connectors">';
|
||||
del_pconfig($uid, "ostatus", "legacy_friends");
|
||||
del_pconfig($uid, "ostatus", "legacy_contact");
|
||||
PConfig::delete($uid, "ostatus", "legacy_friends");
|
||||
PConfig::delete($uid, "ostatus", "legacy_contact");
|
||||
$o .= t("Done");
|
||||
return $o;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue