mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
This commit is contained in:
@@ -3565,6 +3565,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
|
||||
}
|
||||
|
||||
// $morehtml is the right part (link "Back to list")
|
||||
// $morehtmlref is the part after the ref
|
||||
// $morehtmlleft is the picto or photo of banner
|
||||
// $morehtmlstatus is part under the status
|
||||
// $morehtmlright is part of htmlright
|
||||
@@ -4351,11 +4352,13 @@ function getArrayOfSocialNetworks()
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/memory.lib.php';
|
||||
$cachekey = 'socialnetworks_' . $conf->entity;
|
||||
$dataretrieved = dol_getcache($cachekey);
|
||||
|
||||
if (!is_null($dataretrieved)) {
|
||||
$socialnetworks = $dataretrieved;
|
||||
} else {
|
||||
$sql = "SELECT rowid, code, label, url, icon, active FROM " . MAIN_DB_PREFIX . "c_socialnetworks";
|
||||
$sql .= " WHERE entity =" . ((int) $conf->entity);
|
||||
$sql .= " WHERE entity = " . ((int) $conf->entity);
|
||||
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
while ($obj = $db->fetch_object($resql)) {
|
||||
|
||||
Reference in New Issue
Block a user