CMSimple_XH: [Bug] page_params: last update

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

CMSimple_XH: [Bug] page_params: last update

Post by Holger » Tue Apr 06, 2010 8:43 pm

CMSimple_XH 1.1.2:

page_params plugin has the possibility to add the last update date and time to the end of each page.
Therefor the plugin has a language variable $plugin_tx['page_params']['last_edit'] which is used in the preview in the plugin tab.
But for the output on the page the plugin is using $tx['lastupdate']['text'] from the core language.

Line 74 in page_params index.php should be changed from:

Code: Select all

$c[$pd_s] .= '<div id = "pp_last_update">'.$tx['lastupdate']['text'].": ".date($tx['lastupdate']['dateformat'], $pd_current['last_edit']).'</div>'; 
to

Code: Select all

$c[$pd_s] .= '<div id = "pp_last_update">'.$plugin_tx['page_params']['last_edit'].": ".date($tx['lastupdate']['dateformat'], $pd_current['last_edit']).'</div>'; 
Sorry, won't bother you...


Holger

leenm
Posts: 116
Joined: Wed Dec 09, 2009 12:33 pm
Location: Kloetinge, Netherlands
Contact:

Re: CMSimple_XH: [Bug] page_params: last update

Post by leenm » Thu May 06, 2010 10:12 pm

Fixed!

Leen

Post Reply