Notify the user about this at setup time.
$conf = new ConfigData;
install_version_checks();
-print "<li>PHP " . phpversion() . " ok</li>\n";
+
+print "<li>PHP " . phpversion() . ": ";
+if( version_compare( phpversion(), "5.0", "lt" ) ) {
+ print "ok";
+} else {
+ print " <b>the MonoBook skin will be disabled due to an incompatibility
+ between the PHPTAL template library and PHP 5</b>. The wiki should
+ function normally, but with the older look and feel.";
+}
+print "</li>\n";
if( ini_get( "safe_mode" ) ) {
?>
# PHPTal is a library for page templates. MediaWiki includes
# a recent PHPTal distribution. It is required to use the
# Monobook (default) skin.
-$wgUsePHPTal = true;
+#
+# Currently it does not work on PHP5.
+$wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
if( !isset( $wgCommandLineMode ) ) {
$wgCommandLineMode = false;