| @@ 378-387 (lines=10) @@ | ||
| 375 | // This is the subcategory. Must be a key in $this->subCategories[]. |
|
| 376 | // catSplit[2] represents the search-order within the subcat. |
|
| 377 | $catSplit[1] = trim($catSplit[1]); |
|
| 378 | if ($catSplit[1] && isset($this->subCategories[$catSplit[1]])) { |
|
| 379 | $editableComments[$const]['subcat_name'] = $catSplit[1]; |
|
| 380 | $orderIdentifier = isset($catSplit[2]) ? trim($catSplit[2]) : $counter; |
|
| 381 | $editableComments[$const]['subcat'] = $this->subCategories[$catSplit[1]][1] |
|
| 382 | . '/' . $catSplit[1] . '/' . $orderIdentifier . 'z'; |
|
| 383 | } elseif (isset($catSplit[2])) { |
|
| 384 | $editableComments[$const]['subcat'] = 'x' . '/' . trim($catSplit[2]) . 'z'; |
|
| 385 | } else { |
|
| 386 | $editableComments[$const]['subcat'] = 'x' . '/' . $counter . 'z'; |
|
| 387 | } |
|
| 388 | break; |
|
| 389 | case 'label': |
|
| 390 | // Label |
|
| @@ 945-954 (lines=10) @@ | ||
| 942 | // This is the subcategory. Must be a key in $this->subCategories[]. |
|
| 943 | // catSplit[2] represents the search-order within the subcat. |
|
| 944 | $catSplit[1] = trim($catSplit[1]); |
|
| 945 | if ($catSplit[1] && isset($this->subCategories[$catSplit[1]])) { |
|
| 946 | $editableComments[$const]['subcat_name'] = $catSplit[1]; |
|
| 947 | $orderIdentifier = isset($catSplit[2]) ? trim($catSplit[2]) : $counter; |
|
| 948 | $editableComments[$const]['subcat'] = $this->subCategories[$catSplit[1]][1] |
|
| 949 | . '/' . $catSplit[1] . '/' . $orderIdentifier . 'z'; |
|
| 950 | } elseif (isset($catSplit[2])) { |
|
| 951 | $editableComments[$const]['subcat'] = 'x' . '/' . trim($catSplit[2]) . 'z'; |
|
| 952 | } else { |
|
| 953 | $editableComments[$const]['subcat'] = 'x' . '/' . $counter . 'z'; |
|
| 954 | } |
|
| 955 | break; |
|
| 956 | case 'label': |
|
| 957 | // Label |
|