last_modified_pages with version 1.0.3.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Jevos
Forum Members
Forum Members
Posts: 25
Joined: Tue Jan 23, 2007 9:42 am

last_modified_pages with version 1.0.3.

Post by Jevos »

Page with working tag-code for plugin last_modified_pages in version 1.0.2. doens't work anymore in version 1.0.3... anyone have a clue as to where to look?

Thanks!

Jevos
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: last_modified_pages with version 1.0.3.

Post by Ted »

Open up plugins/function.last_modified_pages.php

Change

Code: Select all

global $db;
to

Code: Select all

global $gCms;
$db =& $gCms->GetDb();
The global $db reference was removed in 1.0.3 because it conflicted with other apps (zen cart) and wasn't really necessary with the other ways to retrieve it.
Jevos
Forum Members
Forum Members
Posts: 25
Joined: Tue Jan 23, 2007 9:42 am

Re: last_modified_pages with version 1.0.3.

Post by Jevos »

quick reply with functional fix! Thanks! Does this mean other plugins might need updating? If so, this might be a reason to add an upgrade.txt to the file-package?

Jevos
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: last_modified_pages with version 1.0.3.

Post by Ted »

It's possible other ones might need it.  I didn't think that many things relied on that global $db...  I forgot it even existed, to be honest.

We do have a doc/upgrade.txt now, but it doesn't have anything that specific in it.
Post Reply

Return to “Modules/Add-Ons”