Mistři v programování na #hovnokod

PHP #795

    /**
     * Retrieve loaded category collection
     *
     * @return Mage_Eav_Model_Entity_Collection_Abstract
     */
    public function getLoadedProductCollection($limit='')
    {
    	//return $this->_getProductCollection();
    	if(!$limit)
    	{
    		return $this->_getProductCollection();
    	}
    	else 
    	{
    		$coll	= $this->_getProductCollection();
    		$coll->getSelect()->limit(10000000000000000000000000);
    		//echo $coll->printLogQuery(true);
    		return $coll;
    	}
    	
    }

Anonymous,