ability to open old posts without UUID

This commit is contained in:
2026-07-16 13:17:44 +03:00
parent 7ceae1c81e
commit 975c3f1909
2 changed files with 33 additions and 7 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
/**
* Name: Link
* Description: Using short links on whole hub
* Version: 0.92
* Version: 0.94
* Author: ivan zlax <@zlax@ussr.win>
* Maintainer: ivan zlax <@zlax@ussr.win>
*/
@@ -59,7 +59,7 @@ function dropdown_link(&$extras) {
}
function hideasides_header(&$b) {
if (isset($_GET['link_hideasides'])) {
if (get_config('link','hideasides') && isset($_SERVER['REQUEST_URI']) && str_contains($_SERVER['REQUEST_URI'], '/link/')) {
$addScriptTag = "<style>#region_1 { display: none !important; } #region_3 { display: none !important; }</style>\r\n";
\App::$page['htmlhead'] .= $addScriptTag;
}