Bug #3335
closed
J2.5+UddeIM: CB PMS Integration needs updating for Joomla 2.5 and uddeIM
Added by nant over 12 years ago.
Updated over 12 years ago.
Description
Stephan Slabihoud:
Hi, there is a small bug in pms.mypmspro.php which makes it incompatible with Joomla 2.5 when uddeIM is selected:
Please load the libraries with following code:
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
jimport( 'joomla.version' );
$ver = new JVersion();
if (!strncasecmp($ver->RELEASE, "2.5", 3)) {
require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib25.php');
} elseif (!strncasecmp($ver->RELEASE, "1.5", 3)) {
require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib15.php');
} elseif (!strncasecmp($ver->RELEASE, "1.6", 3)) {
require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib16.php');
} elseif (!strncasecmp($ver->RELEASE, "1.7", 3)) {
require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib17.php');
} else {
require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib25.php');
}
} else {
global $mainframe;
require_once($mainframe->getCfg('absolute_path').'/components/com_uddeim/uddeimlib10.php');
}
In the current version the 2.5 layer is missing.
Thx!
Files
- File 3335.patch 3335.patch added
- Status changed from New to Resolved
- Assignee changed from krileon to beat
- % Done changed from 0 to 100
- Priority changed from Normal to Urgent
- Status changed from Resolved to Assigned
- Assignee changed from beat to krileon
- % Done changed from 100 to 40
can you redo that patch using the CB checkjversion call instead of the Joomla version calls that are not same on all versions ?
- File 3335_rev1.patch 3335_rev1.patch added
- Status changed from Assigned to Resolved
- Assignee changed from krileon to beat
- % Done changed from 40 to 100
rev1 implements usage of CBs checkJversion function.
- Status changed from Resolved to Assigned
- Assignee changed from beat to krileon
- % Done changed from 100 to 70
Patch still regression from original.
Original was doing minimal tests to see if a file was existing before require-ing it.
- File 3335_rev2.patch 3335_rev2.patch added
- Status changed from Assigned to Resolved
- Assignee changed from krileon to beat
- % Done changed from 70 to 100
- Subject changed from CB PMS Integration needs updating for Joomla 2.5 and uddeIM to J2.5+UddeIM: CB PMS Integration needs updating for Joomla 2.5 and uddeIM
- Status changed from Resolved to Closed
- Estimated time set to 1:00 h
Committed patch ver2 to r1799 .
To Test:
- try sending UddeIM private messages with UddeIM latest and Joomla 2.5 and Joomla 1.5.
Also available in: Atom
PDF