Downgrading plugin from 2.7 to 2.5.9

Downgrading plugin from 2.7 to 2.5.9

by Peter Eliyahu Kornfeld -
Number of replies: 0

I have a nice plugin working from 2.7 to latest, but now I have to run it under 2.5.9...

My first problem came early, with the settings page...

I have a line to display the version of the plugin on the settings page:

$settings->add ( new admin_setting_heading ( 'local_ws_rashim/version', '<h6>' . get_string ( 'version', 'local_ws_rashim' ) . $this->release . ' (' . $this->versiondisk . ')</h6>', '' ) );

This line fails in 2.5.9 as $this does not refer to the plugin... There is a way to make this line work or at least make it conditional?

Thank you

Peter

[EDIT]

I found, that I can load the config data form the DB using get_config ( 'local_ws_rashim' ), but it has no the release value in it...

Average of ratings: -