Skip to content

Commit

Permalink
__DIR__ only works on 5.3+, dirname(__FILE__) works previously.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Ardell committed Jul 31, 2010
1 parent 41f7edb commit fcf10d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enforce-coding-standards
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/Config.php';
require dirname(__FILE__) . '/Config.php';
$codingStandard = $CONFIG['codingStandard'];

$output = array();
Expand Down
2 changes: 1 addition & 1 deletion pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/Config.php';
require dirname(__FILE__) . '/Config.php';

$commandsToRun = $CONFIG['preCommit'];
foreach ($commandsToRun as $command) {
Expand Down

0 comments on commit fcf10d7

Please sign in to comment.