Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

Get instance of VIP_Scanner_UI to get default_review property #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions vip-scanner/class.vip-scanner-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ private static function required( $name ) {
}

private static function is_review_type( $type ) {
global $vip_scanner;
$review_types = VIP_Scanner::get_instance()->get_review_types();
$cur = isset( $_REQUEST['vip-scanner-review-type'] ) ? $_REQUEST['vip-scanner-review-type'] : $review_types[$vip_scanner->default_review];
$cur = isset( $_REQUEST['vip-scanner-review-type'] ) ? $_REQUEST['vip-scanner-review-type'] : $review_types[ VIP_Scanner_UI::get_instance()->default_review ];
return $cur == $type;
}

Expand Down