summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2010-08-15 22:28:31 (GMT)
committer Stella Power2010-08-15 22:28:31 (GMT)
commite9c773ecd19ce0b2612f52bd7741f94b75e4aeca (patch)
tree1433f8951288cc9850ed83cc214a7d8811950bc2
parente3448e358892948abff9f922c61eb589180f2e8c (diff)
fixed bug in parsing of ignores files due to blank lines, fixed phpapi theme
call
-rw-r--r--coder.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/coder.module b/coder.module
index 8ca23e3..7c847ba 100644
--- a/coder.module
+++ b/coder.module
@@ -1883,11 +1883,12 @@ function coder_parse_ignores($filepath) {
// Parse the contents.
foreach ($lines as $line) {
+ $line = trim($line);
if (empty($line) || preg_match('/^;/', $line, $matches)) {
continue;
}
// filename:lineo:review
- $parts = explode(':', trim($line));
+ $parts = explode(':', $line);
// $ignores[filename][review][] = lineno
$ignores[$parts[0]][$parts[2]][] = $parts[1];
}
@@ -1913,6 +1914,7 @@ function coder_theme() {
'coder_warning_msg' => array('arguments' => array('error')),
'cols' => array('arguments' => array('form')),
'drupalapi' => array('arguments' => array('function', 'version')),
+ 'phpapi' => array('arguments' => array('function')),
);
}
@@ -2042,5 +2044,5 @@ function theme_drupalapi($function, $version = '') {
* Function to link to.
*/
function theme_phpapi($function) {
- return l($function, "http://us.php.net/$function");
+ return l($function, "http://php.net/$function");
}