diff --git a/htdocs/admin/website.php b/htdocs/admin/website.php
index 311b67c21f2..f55f432ed5a 100644
--- a/htdocs/admin/website.php
+++ b/htdocs/admin/website.php
@@ -490,6 +490,9 @@ if ($id) {
}
}
}
+ if (!isset($obj->position)) {
+ $obj->position = 1;
+ }
fieldListWebsites($fieldlist, $obj, $tabname[$id], 'add');
@@ -499,8 +502,6 @@ if ($id) {
}
print '';
print "";
-
- $colspan = count($fieldlist) + 2;
}
print '';
diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php
index f06bb32b62b..2a25652761d 100644
--- a/htdocs/core/class/translate.class.php
+++ b/htdocs/core/class/translate.class.php
@@ -735,7 +735,7 @@ class Translate
* @param string $str string root to translate
* @param string $countrycode country code (FR, ...)
* @return string translated string
- * @see transcountrynoentities()
+ * @see transcountrynoentities(), picto_from_langcode()
*/
public function transcountry($str, $countrycode)
{
@@ -753,7 +753,7 @@ class Translate
* @param string $str string root to translate
* @param string $countrycode country code (FR, ...)
* @return string translated string
- * @see transcountry()
+ * @see transcountry(), picto_from_langcode()
*/
public function transcountrynoentities($str, $countrycode)
{
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 2b981530834..ce3b89d7805 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -7996,7 +7996,7 @@ function dol_validElement($element)
}
/**
- * Return img flag of country for a language code or country code
+ * Return img flag of country for a language code or country code.
*
* @param string $codelang Language code ('en_IN', 'fr_CA', ...) or ISO Country code on 2 characters in uppercase ('IN', 'FR')
* @param string $moreatt Add more attribute on img tag (For example 'style="float: right"' or 'class="saturatemedium"')
diff --git a/htdocs/core/lib/website2.lib.php b/htdocs/core/lib/website2.lib.php
index 6510d5fff8d..8824d9cc06d 100644
--- a/htdocs/core/lib/website2.lib.php
+++ b/htdocs/core/lib/website2.lib.php
@@ -203,10 +203,6 @@ function dolSavePageContent($filetpl, Website $object, WebsitePage $objectpage,
}
// Add translation reference (main language)
if ($object->isMultiLang()) {
- // Add myself
- $tplcontent .= 'fk_default_home == $objectpage->id) ? '/' : (($shortlangcode != substr($object->lang, 0, 2)) ? '/'.$shortlangcode : '')).'/'.$objectpage->pageurl.'.php") { ?>'."\n";
- $tplcontent .= ''."\n";
-
// Add page "translation of"
$translationof = $objectpage->fk_page;
if ($translationof) {
@@ -225,6 +221,7 @@ function dolSavePageContent($filetpl, Website $object, WebsitePage $objectpage,
}
}
}
+
// Add "has translation pages"
$sql = 'SELECT rowid as id, lang, pageurl from '.MAIN_DB_PREFIX.'website_page where fk_page IN ('.$db->sanitize($objectpage->id.($translationof ? ', '.$translationof : '')).")";
$resql = $db->query($sql);
@@ -244,6 +241,11 @@ function dolSavePageContent($filetpl, Website $object, WebsitePage $objectpage,
} else {
dol_print_error($db);
}
+
+ // Add myself
+ $tplcontent .= 'fk_default_home == $objectpage->id) ? '/' : (($shortlangcode != substr($object->lang, 0, 2)) ? '/'.$shortlangcode : '')).'/'.$objectpage->pageurl.'.php") { ?>'."\n";
+ $tplcontent .= ''."\n";
+
$tplcontent .= ''."\n";
}
// Add manifest.json. Do we have to add it only on home page ?
diff --git a/htdocs/install/default.css b/htdocs/install/default.css
index eaefd6d5b2b..5363d9530e1 100644
--- a/htdocs/install/default.css
+++ b/htdocs/install/default.css
@@ -362,7 +362,7 @@ tr.choiceselected td .button {
}
a.button:link,a.button:visited,a.button:active {
- color: #888;
+ color: #555;
}
.button {
diff --git a/htdocs/install/step2.php b/htdocs/install/step2.php
index d9321656355..2841ae8bdfe 100644
--- a/htdocs/install/step2.php
+++ b/htdocs/install/step2.php
@@ -572,7 +572,7 @@ dolibarr_install_syslog("- step2: end");
$out = ' ';
-$out .= $langs->trans("MakeAnonymousPing");
+$out .= '';
$out .= '';
$out .= '