Commit ac4db857 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

file checks for page titles

parent 96e96fae
......@@ -157,7 +157,10 @@ sub process {
print "($author) ", $directory, $filename, " has call to get_string that doesn't exist: get_string('$tag', '$section')\n";
}
}
}
print "\n";
# check for page titles
if ( $file_data =~ m{define.*\(.*INTERNAL.*1.*\)} and $file_data !~ m{define.*\(.*JSON.*1.*\)} and $file_data !~ m{define.*\(.*TITLE.*\)} ) {
print "($author) ", $directory, $filename, " is missing page title [ define('TITLE', get_string(...)); ]\n";
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment