diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-30 04:15:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 20:15:35 +0000 |
commit | 4daea7c603c085eeda7017ac7188de7828824ed4 (patch) | |
tree | 5665912350029adfe15ce2c0a055c6744476aa67 /templates/shared | |
parent | a21ca9b5a5e85d2734bd4cd9e308800eda41a524 (diff) | |
download | gitea-4daea7c603c085eeda7017ac7188de7828824ed4.tar.gz gitea-4daea7c603c085eeda7017ac7188de7828824ed4.zip |
Rename CodeIndexerEnabled to IsRepoIndexerEnabled (#30762)
Fix #30761
Most places use `IsRepoIndexerEnabled` but not `CodeIndexerEnabled`, so
it should always use `IsRepoIndexerEnabled` for consistency.
Diffstat (limited to 'templates/shared')
-rw-r--r-- | templates/shared/search/code/search.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/search/code/search.tmpl b/templates/shared/search/code/search.tmpl index cb873f5a92..e49ea47e03 100644 --- a/templates/shared/search/code/search.tmpl +++ b/templates/shared/search/code/search.tmpl @@ -8,7 +8,7 @@ <p>{{ctx.Locale.Tr "search.code_search_unavailable"}}</p> </div> {{else}} - {{if not .CodeIndexerEnabled}} + {{if not .IsRepoIndexerEnabled}} <div class="ui message"> <p>{{ctx.Locale.Tr "search.code_search_by_git_grep"}}</p> </div> |