Skip to content

Commit

Permalink
Make Reliability Load Again
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Apr 30, 2018
1 parent 3ba3555 commit fe720ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RewriteRule ^([a-zA-Z_-]+)/ajax/([a-zA-Z0-9_.-]+)$ AjaxHelper.php?Module=$1&scri
RewriteRule ^instruments/([a-zA-Z0-9_-]+)/$ main.php?test_name=$1 [QSA,L]
RewriteRule ^instruments/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_.-]+)/$ main.php?test_name=$1&subtest=$2 [QSA,L]

RewriteRule ^([a-zA-Z0-9_-]+)reliability(a-zA-Z0-9_-])+/$ main.php?test_name=$1reliability$2 [QSA,L]
RewriteRule ^([a-zA-Z0-9_-]+)reliability([a-zA-Z0-9_-]*) main.php?test_name=$1reliability$2 [QSA,L]

# Everything else gets rewritten to be handled by index.php, unless it's a file that's served
# directly from apache
Expand Down
3 changes: 2 additions & 1 deletion php/libraries/NDB_Reliability.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ class NDB_Reliability extends NDB_Form
throw new Exception("The form class ($name) is not defined.");
}

$m = \Module::factory("reliability");
// create a form instance
$obj = new $class($name, $page, $identifier, null, 'test_form');
$obj = new $class($m, $page, $identifier, '', 'test_form');

$obj->reliability_center_id = $reliability_center_id;

Expand Down

0 comments on commit fe720ae

Please sign in to comment.