Skip to content

Refs #46074 #46345,feat: Civicrm AGPL update content to .tpl#148

Open
Chen-LiYin wants to merge 4 commits intoNETivism:developfrom
Chen-LiYin:develop
Open

Refs #46074 #46345,feat: Civicrm AGPL update content to .tpl#148
Chen-LiYin wants to merge 4 commits intoNETivism:developfrom
Chen-LiYin:develop

Conversation

@Chen-LiYin
Copy link
Copy Markdown
Contributor

CiviCRM AGPL 授權標頭更新

增加 Step C 來處理 .tpl 的檔案 (只需要處理 top license block)
修改 header-update.php 測試一個tpl檔案,確認有更新授權標頭

截圖 2026-04-24 上午11 38 17

}

// --- TPL header converter: replaces PHP /* */ delimiters with Smarty {* *} ---
function phpHeaderToTpl($phpHeader) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊會有一個warning
Parameter $phpHeader has no type information available.intelephense(P1132)
要定義一下 $phpHeader 的型別

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這是 Intelephense的警告,由於這個tools 其他檔案沒有處理,這部分先這樣,不用修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants