@@ -1925,6 +1925,17 @@ final class Settings
19251925 */
19261926 public int $ QueryHistoryMax ;
19271927
1928+ /**
1929+ * Allow shared bookmarks between users
1930+ *
1931+ * ```php
1932+ * $cfg['AllowSharedBookmarks'] = true;
1933+ * ```
1934+ *
1935+ * @link https://docs.phpmyadmin.net/en/latest/config.html#cfg_AllowSharedBookmarks
1936+ */
1937+ public bool $ AllowSharedBookmarks ;
1938+
19281939 /**
19291940 * Use MIME-Types (stored in column comments table) for
19301941 *
@@ -2565,6 +2576,7 @@ public function __construct(array $settings)
25652576 $ this ->repeatCells = $ this ->setRepeatCells ($ settings );
25662577 $ this ->QueryHistoryDB = $ this ->setQueryHistoryDB ($ settings );
25672578 $ this ->QueryHistoryMax = $ this ->setQueryHistoryMax ($ settings );
2579+ $ this ->AllowSharedBookmarks = $ this ->setAllowSharedBookmarks ($ settings );
25682580 $ this ->BrowseMIME = $ this ->setBrowseMIME ($ settings );
25692581 $ this ->MaxExactCount = $ this ->setMaxExactCount ($ settings );
25702582 $ this ->MaxExactCountViews = $ this ->setMaxExactCountViews ($ settings );
@@ -2762,6 +2774,7 @@ public function asArray(): array
27622774 'RepeatCells ' => $ this ->repeatCells ,
27632775 'QueryHistoryDB ' => $ this ->QueryHistoryDB ,
27642776 'QueryHistoryMax ' => $ this ->QueryHistoryMax ,
2777+ 'AllowSharedBookmarks ' => $ this ->AllowSharedBookmarks ,
27652778 'BrowseMIME ' => $ this ->BrowseMIME ,
27662779 'MaxExactCount ' => $ this ->MaxExactCount ,
27672780 'MaxExactCountViews ' => $ this ->MaxExactCountViews ,
@@ -4796,6 +4809,16 @@ private function setQueryHistoryMax(array $settings): int
47964809 return $ queryHistoryMax >= 1 ? $ queryHistoryMax : 25 ;
47974810 }
47984811
4812+ /** @param array<int|string, mixed> $settings */
4813+ private function setAllowSharedBookmarks (array $ settings ): bool
4814+ {
4815+ if (! isset ($ settings ['AllowSharedBookmarks ' ])) {
4816+ return true ;
4817+ }
4818+
4819+ return (bool ) $ settings ['AllowSharedBookmarks ' ];
4820+ }
4821+
47994822 /** @param array<int|string, mixed> $settings */
48004823 private function setBrowseMIME (array $ settings ): bool
48014824 {
0 commit comments