Fixed wiki redirect. Fix footer.

This commit is contained in:
Oleg Sh 2024-10-12 21:18:46 +02:00
parent f407d3be06
commit de90c5c409
3 changed files with 4 additions and 4 deletions

View File

@ -187,14 +187,14 @@
/**
* Путь до корня сайта с подставкой языка, нужна для ссылок
*/
function SiteRoot($uri = '')
function SiteRoot($uri = '', $add_lang = true)
{
global $g_config;
$uri = $uri == $g_config['defaultComponent'] ? '' : $uri;
$dir = SITE_IN_DIR ? (SITE_IN_DIR . '/') : '';
$lang = LANG == DEF_LANG ? '' : (LANG . '/');
$lang = LANG == DEF_LANG || !$add_lang ? '' : (LANG . '/');
$ret = $lang || $uri ? "/{$dir}?q={$lang}{$uri}" : "/{$dir}";
$ret = empty($ret) ? '/' : $ret;
$ret = $g_config['useModRewrite'] ?

View File

@ -12,6 +12,6 @@
$g_lang["menu_9"] = "Using graph example";
$g_lang["menu_10"] = "Open source";
$g_lang["menu_11"] = "Using edge list";
$g_lang["footer_info"] = "<a href=\"/en/\">Graph Online</a>&nbsp;is online project aimed at&nbsp;creation and easy visualization of graph and <a href=\"/en/\">shortest path searching</a>. Also you can create&nbsp;<a href=\"http://graphonline.ru/en/create_graph_by_matrix\">graph from adjacency matrix</a>.&nbsp;<a href=\"/en/about\">About project</a> and <a href=\"http://graphonline.ru/en/help\">look help page</a>.\n";
$g_lang["footer_info"] = "<a href=\"/en/\">Graph Online</a>&nbsp;is online project aimed at&nbsp;creation and easy visualization of graph and <a href=\"/en/\">shortest path searching</a>. Also you can create&nbsp;<a href=\"/en/create_graph_by_matrix\">graph from adjacency matrix</a>.&nbsp;<a href=\"/en/about\">About project</a> and <a href=\"/en/help\">look help page</a>.\n";
$g_lang["lang"] = "Language";
?>

View File

@ -42,7 +42,7 @@
"link" => SiteRoot("help"),),
array(
"title" => L("menu_6"),
"link" => SiteRoot("wiki"),),
"link" => SiteRoot(LANG != 'ru' ? "en/wiki" : "wiki", false),),
array(
"title" => L("menu_10"),
"link" => SiteRoot("opensource"),)