(Bug 40860) make purgeRedundantText not fail on pre MW1.5 records
[lhc/web/wiklou.git] / maintenance / checkSyntax.php
index 6137a95..0a22f58 100644 (file)
  * @ingroup Maintenance
  */
 
-require_once( dirname( __FILE__ ) . '/Maintenance.php' );
+require_once( __DIR__ . '/Maintenance.php' );
 
+/**
+ * Maintenance script to check syntax of all PHP files in MediaWiki.
+ *
+ * @ingroup Maintenance
+ */
 class CheckSyntax extends Maintenance {
 
        // List of files we're going to check