fix(ns): class_exists() must use FQCN after PSR-4
Bare class_exists('Balance') looks up global Balance, always false
under AKSRT\* namespaces → REST 403 on balance exchange and friends.
Rewrite string checks to AKSRT\{Domain}\{Class}.
This commit is contained in:
1 parent
d55d1c6b62
commit
68d2e78d77
40 files changed
+105
-105
No files matched your search
@@ -26,7 +26,7 @@ class CreatorRevenue {
|
||||
* Whether creator revenue settlement is enabled.
|
||||
*/
|
||||
private function is_enabled(): bool {
|
||||
if (!class_exists('Revenue') || !class_exists('\AKSRT\Settings\Settings')) {
|
||||
if (!class_exists('AKSRT\\Payment\\Revenue') || !class_exists('\AKSRT\Settings\Settings')) {
|
||||
return false;
|
||||
}
|
||||
$settings = \AKSRT\Settings\Settings::get_payment_revenue_settings();
|
||||
|
||||
Reference in new issue
Block a user