aboutsummaryrefslogtreecommitdiffstats
path: root/util/typo.php
diff options
context:
space:
mode:
Diffstat (limited to 'util/typo.php')
-rw-r--r--util/typo.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/typo.php b/util/typo.php
new file mode 100644
index 000000000..e3141a46e
--- /dev/null
+++ b/util/typo.php
@@ -0,0 +1,17 @@
+<?php
+ // Tired of chasing typos and finding them after a commit.
+ // Run this from cmdline in basedir and quickly see if we've
+ // got any parse errors in our application files.
+
+ include 'boot.php';
+
+ $a = new App();
+
+ $files = glob('mod/*.php');
+ foreach($files as $file)
+ include_once($file);
+
+
+ $files = glob('include/*.php');
+ foreach($files as $file)
+ include_once($file);