Bug Typo in category breadcrumbs

Status
Not open for further replies.

kick

Customer
PHP:
public function getBreadcrumbs($includeSelf = true, $linkType = 'public')
    {
        if ($linkType == 'public')
        {
            $link = 'dbtech-ecommerce/categories';
        }
        else
        {
            $link = 'dbtech-ecommerce/categories';
        }
        return $this->_getBreadcrumbs($includeSelf, $linkType, $link);
    }
 
Can you please provide more information? It is not clear what you are reporting from simply posting a code snippet.
 
I provided a code where the condition doesn’t make any difference at all, since the same thing will always return
What is the difference from the type of link if it returns the same thing for everything?
PHP:
if ($linkType == 'public')
        {
            $link = 'dbtech-ecommerce/categories';
        }
Well, if our link type is not public, what next? We have a condition
PHP:
else
        {
            $link = 'dbtech-ecommerce/categories';
        }
And we get the same link. The question is, why then is this condition necessary? It makes no sense extra code
 
Then that's not a typo. A typo is a misspelling.

This was originally separated because the routes were different in the AdminCP vs front-end, and there's no reason to change this.
 
Status
Not open for further replies.

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,080
Customer rating
4.86 star(s) 7 ratings
Back
Top