.

守矢諏訪子 <suwako@076.moe>、2026-05-22 17:11
コミット 094ff95f71af72d6b46802682134ce00843b4c34 ・親 e280f94 ・ファイルを見る

2個のファイル、+10 -5

@@ -39,7 +39,7 @@
3939
4040 trait Mods {
4141 public function getMenu(): array {
42- return [
42+ $menu = [
4343 [
4444 'class' => 'menu-item',
4545 'href' => '/',
@@ -82,13 +82,18 @@
8282 'text' => 'スタッフ限定',
8383 'show' => true,
8484 ],
85- [
85+ ];
86+
87+ if (OPENPROVIDER_ENABLED) {
88+ $menu[] = [
8689 'class' => 'menu-item',
8790 'href' => '/openprovider',
8891 'page' => 'openprovider',
8992 'text' => 'OpenProvider管理',
9093 'show' => true,
91- ],
92- ];
94+ ];
95+ }
96+
97+ return $menu;
9398 }
9499 }
変更 sync.sh
@@ -7,5 +7,5 @@
77 rsync ${RSYNCOPT} *.php ${SRV}:${HTTPHOME}
88 rsync ${RSYNCOPT} blog ${SRV}:${HTTPHOME}
99 #rsync ${RSYNCOPT} config ${SRV}:${HTTPHOME}
10-rsync ${RSYNCOPT} src/Site/Controller ${SRV}:${HTTPHOME}/src/Site
10+rsync ${RSYNCOPT} src ${SRV}:${HTTPHOME}
1111 rsync ${RSYNCOPT} view ${SRV}:${HTTPHOME}