Skip to content

Commit

Permalink
Merge pull request #3 from parshikov/Switch_to_submodule
Browse files Browse the repository at this point in the history
Move rules to submodule
  • Loading branch information
parshikov committed Nov 7, 2013
2 parents 41df529 + 9d416ed commit 2321e90
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1,000 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "rules"]
path = rules
url = https://github.com/petrovich/petrovich-rules.git
2 changes: 1 addition & 1 deletion Petrovich.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Petrovich {
*/
function __construct($gender = Petrovich::GENDER_ANDROGYNOUS, $rules_dir = __DIR__) {

$rules_path = $rules_dir.'/rules.json';
$rules_path = $rules_dir.'/rules/rules.json';
$rules_resourse = fopen($rules_path, 'r');

if($rules_resourse == false)
Expand Down
1 change: 1 addition & 0 deletions rules
Submodule rules added at f0a0d7
Loading

0 comments on commit 2321e90

Please sign in to comment.