Merge "Add meta=userinfo&uiprop=latestcontrib"
[lhc/web/wiklou.git] / maintenance / dev / installmw.sh
index 7e352b6..9ae3c59 100755 (executable)
@@ -3,14 +3,7 @@
 if [ "x$BASH_SOURCE" == "x" ]; then echo '$BASH_SOURCE not set'; exit 1; fi
 DEV=$(cd -P "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
 
-if [ -d "$DEV/php" -a -x "$DEV/php/bin/php" ]; then
-       PHP="$DEV/php/bin/php"
-elif [ -d "$HOME/.mwphp" -a -x "$HOME/.mwphp/bin/php" ]; then
-       PHP="$HOME/.mwphp/bin/php"
-else
-       echo "Local copy of PHP is not installed"
-       echo 1
-fi
+. "$DEV/includes/require-php.sh"
 
 set -e