Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in the exception message #3153

Merged
merged 2 commits into from
Apr 8, 2023
Merged

Fixed typo in the exception message #3153

merged 2 commits into from
Apr 8, 2023

Conversation

addison74
Copy link
Contributor

In file /app/code/core/Mage/Payment/Helper/Data.php there is a typo. Unkown => Unknown.

    public function getMethodInstance($code)
    {
        $key = self::XML_PATH_PAYMENT_METHODS . '/' . $code . '/model';
        $class = Mage::getStoreConfig($key);
        if (is_null($class)) {
            Mage::logException(new Exception(sprintf('Unkown payment method with code "%s"', $code)));
            return false;
        }
        return Mage::getModel($class);
    }

@github-actions github-actions bot added the Component: Payment Relates to Mage_Payment label Apr 8, 2023
@fballiano fballiano merged commit 6588381 into OpenMage:main Apr 8, 2023
@fballiano fballiano changed the title Typo in the exception message Fixed typo in the exception message Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Payment Relates to Mage_Payment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants