Project

General

Profile

Bug #18640 ยป 8158.diff

Administrator Admin, 2008-04-19 15:39

View differences:

/home/klee/eclipse/typo3_4.2/typo3/mod/tools/em/class.em_xmlhandler.php (working copy)
$forder = 'category';
break;
}
$order = $forder.', title';
$order = $forder.', title, '
// gets the x from a version number x.y.z as a number
.'CAST(SUBSTRING_INDEX(version, \'.\', 1) AS UNSIGNED), '
// gets the y from a version number x.y.z as a number
.'CAST(SUBSTRING_INDEX('
// gets the x.y from a version number x.y.z
.'SUBSTRING_INDEX(version, \'.\', 2)'
.', \'.\', -1) AS UNSIGNED), '
// gets the z from a version number x.y.z as a number
.'CAST(SUBSTRING_INDEX(version, \'.\', -1) AS UNSIGNED)';
if (!$allVer) {
if ($this->useUnchecked) {
$where .= ' AND lastversion>0';
    (1-1/1)