Fix link between translations
This commit is contained in:
parent
c5b83ca3d8
commit
f40fdad06c
@ -3034,19 +3034,23 @@ if ($action == 'editmeta' || $action == 'createcontainer')
|
|||||||
$num_rows = $db->num_rows($resql);
|
$num_rows = $db->num_rows($resql);
|
||||||
if ($num_rows > 0)
|
if ($num_rows > 0)
|
||||||
{
|
{
|
||||||
print '<span class="opacitymedium">'.$langs->trans('ThisPageHasTranslationPages').':</span><br>';
|
print '<span class="opacitymedium">'.$langs->trans('ThisPageHasTranslationPages').':</span>';
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$tmppage = new WebsitePage($db);
|
$tmppage = new WebsitePage($db);
|
||||||
|
$tmpstring = '';
|
||||||
while ($obj = $db->fetch_object($resql))
|
while ($obj = $db->fetch_object($resql))
|
||||||
{
|
{
|
||||||
$result = $tmppage->fetch($obj->rowid);
|
$result = $tmppage->fetch($obj->rowid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
if ($i > 0) print '<br>';
|
if ($i > 0) $tmpstring .= '<br>';
|
||||||
print $tmppage->getNomUrl(1).' ('.$tmppage->lang.')';
|
$tmpstring .= $tmppage->getNomUrl(1).' ('.$tmppage->lang.')';
|
||||||
$translatedby++;
|
$translatedby++;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($i > 1) print '<br>';
|
||||||
|
else print ' ';
|
||||||
|
print $tmpstring;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else dol_print_error($db);
|
else dol_print_error($db);
|
||||||
@ -3064,6 +3068,9 @@ if ($action == 'editmeta' || $action == 'createcontainer')
|
|||||||
$translationof = $objectpage->fk_page;
|
$translationof = $objectpage->fk_page;
|
||||||
print '<span class="opacitymedium">'.$langs->trans('ThisPageIsTranslationOf').'</span> ';
|
print '<span class="opacitymedium">'.$langs->trans('ThisPageIsTranslationOf').'</span> ';
|
||||||
print $formwebsite->selectContainer($website, 'pageidfortranslation', ($translationof ? $translationof : -1), 1, $action, 'minwidth300', array($objectpage->id));
|
print $formwebsite->selectContainer($website, 'pageidfortranslation', ($translationof ? $translationof : -1), 1, $action, 'minwidth300', array($objectpage->id));
|
||||||
|
if ($translationof > 0) {
|
||||||
|
print $sourcepage->getNomUrl(2).' ('.$sourcepage->lang.')';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user