Index: trunk/extensions/SemanticForms/specials/SF_Templates.php |
— | — | @@ -102,7 +102,12 @@ |
103 | 103 | // category tag, there's a good chance that the last |
104 | 104 | // one will be the relevant one - the others are |
105 | 105 | // probably part of inline queries. |
106 | | - return trim( end( $matches[2] ) ); |
| 106 | + $categoryName = trim( end( $matches[2] ) ); |
| 107 | + // If there's a pipe, remove it and anything after it. |
| 108 | + $locationOfPipe = strpos( $categoryName, '|' ); |
| 109 | + if ( $locationOfPipe !== false ) { |
| 110 | + $categoryName = substr( $categoryName, 0, $locationOfPipe ); |
| 111 | + } |
107 | 112 | } |
108 | 113 | return ""; |
109 | 114 | } |