Skip to content

Commit

Permalink
Remove unused variableArrayIndex parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
naresh-kumar-babu committed Sep 1, 2024
1 parent f05240a commit 03e148e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _sources/scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ get_mediawiki_db_var() {
echo "Unexpected variable name passed to the get_mediawiki_db_var() function: $1"
return
esac
VALUE=$(php /getMediawikiSettings.php --variable=wgDBservers --variableArrayIndex="[0,\"$I\"]" --format=string)
VALUE=$(php /getMediawikiSettings.php --variable=wgDBservers --format=string)
if [ -z "$VALUE" ]; then
VALUE=$(get_mediawiki_variable "$1")
fi
Expand All @@ -50,7 +50,7 @@ get_hostname_with_port() {
get_mediawiki_cirrus_search_server() {
server=$(get_mediawiki_variable wgCirrusSearchServers first)
if [ -z "$server" ]; then
server=$(php /getMediawikiSettings.php --variable=wgCirrusSearchClusters --variableArrayIndex="[\"default\",0]" --format=string)
server=$(php /getMediawikiSettings.php --variable=wgCirrusSearchClusters --format=string)
fi
get_hostname_with_port "$server" 9200
}
Expand Down

0 comments on commit 03e148e

Please sign in to comment.