Improved position of "close"
This commit is contained in:
parent
a0567d4081
commit
6c9953809a
2 changed files with 8 additions and 9 deletions
|
@ -3,6 +3,8 @@
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
|
|
||||||
|
require_once 'include/contact_selectors.php';
|
||||||
|
|
||||||
function follow_widget($value = "") {
|
function follow_widget($value = "") {
|
||||||
|
|
||||||
return replace_macros(get_markup_template('follow.tpl'), array(
|
return replace_macros(get_markup_template('follow.tpl'), array(
|
||||||
|
@ -113,8 +115,6 @@ function networks_widget($baseurl, $selected = '') {
|
||||||
);
|
);
|
||||||
|
|
||||||
$nets = array();
|
$nets = array();
|
||||||
if (dbm::is_result($r)) {
|
|
||||||
require_once 'include/contact_selectors.php';
|
|
||||||
while ($rr = dba::fetch($r)) {
|
while ($rr = dba::fetch($r)) {
|
||||||
/// @TODO If 'network' is not there, this triggers an E_NOTICE
|
/// @TODO If 'network' is not there, this triggers an E_NOTICE
|
||||||
if ($rr['network']) {
|
if ($rr['network']) {
|
||||||
|
@ -122,7 +122,6 @@ function networks_widget($baseurl, $selected = '') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dba::close($r);
|
dba::close($r);
|
||||||
}
|
|
||||||
|
|
||||||
if (count($nets) < 2) {
|
if (count($nets) < 2) {
|
||||||
return '';
|
return '';
|
||||||
|
|
|
@ -43,11 +43,11 @@ class PConfig {
|
||||||
$a->config[$uid][$family][$k] = $rr['v'];
|
$a->config[$uid][$family][$k] = $rr['v'];
|
||||||
self::$in_db[$uid][$family][$k] = true;
|
self::$in_db[$uid][$family][$k] = true;
|
||||||
}
|
}
|
||||||
dba::close($r);
|
|
||||||
} else if ($family != 'config') {
|
} else if ($family != 'config') {
|
||||||
// Negative caching
|
// Negative caching
|
||||||
$a->config[$uid][$family] = "!<unset>!";
|
$a->config[$uid][$family] = "!<unset>!";
|
||||||
}
|
}
|
||||||
|
dba::close($r);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue