-2
<!-->This is the new code I am trying to add<!-->
<?php if $current_user = 'test' { ?>
<script type="text/javascript" src="https://cimulus.atlassian.net/s/fe43f6fc5a628824d47590ead0fc6aee-T/en_US-iikkpb/64014/28/1.4.24/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=2a7a4da1"></script>
}
我想補充一點,只爲用戶「測試」顯示按鈕的HTML腳本,但我不斷收到線97上這個語法錯誤是此行。我真的不明白我做錯了什麼。
<?php if (TEST_MODE) { ?>
要檢查一個值,您需要使用== :)'if($ current_user =='test' )' – Marc 2015-04-01 20:42:12
這行有兩個錯誤:'' –
2015-04-01 20:42:48