Skip to content

Commit c3f8cbc

Browse files
author
Leonardo Rossi
committed
general: disable plugin if php not available.
* Adds a check if php exists. If not exists, autodisable. Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
1 parent f7224ea commit c3f8cbc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plugin/Phpqa.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
" }}}
1515
"-------------------------------------------------
1616

17+
" Disable plugin if php isn't available
18+
if 0 == has("php")
19+
finish
20+
endif
21+
1722
if exists("g:phpqa_check")
1823
finish
1924
endif

0 commit comments

Comments
 (0)