Topic: "Story" Should Be "Store"?

Reading the code of the pronto/core/factory.php file I stumbled upon this on line 172:

        switch($type) {
            case 'page':
                $prefix = 'pp';
                $regname = 'pronto:plugins';
                break;
            case 'template':
                $prefix = 'tp';
                $regname = 'pronto:helpers';
                break;
        }
        $store =& Registry::get($regname);
        if(!$store) $story = new stdClass; // <-- This is line 172!!!

        // check if plugin already exists
        if(isset($store->$name)) return $store->$name;

Shouldn't that line read:

if (!$store) $store = new stdClass;

I think it should be "$store" and not "$story".

Great job, BTW. Thanks for Pronto. I'm reading over it to see if it will help us in our endeavors in our coding!

Thanx,
Matt

Re: "Story" Should Be "Store"?

Hi Matt,

Yea, thanks for the find, it's since been fixed.  You can grab the latest code from GIT.

$ git clone git://zeroflux.org/pronto.git

Cheers.