Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php |
— | — | @@ -137,9 +137,14 @@ |
138 | 138 | |
139 | 139 | $form_names = array(); |
140 | 140 | foreach ( $res as $wiki_page_value ) { |
141 | | - $form_title = $wiki_page_value->getTitle(); |
142 | | - if ( ! is_null( $form_title ) ) { |
143 | | - $form_names[] = $form_title->getText(); |
| 141 | + // SMW 1.6+ |
| 142 | + if ( $wiki_page_value instanceof SMWDIWikiPage ) { |
| 143 | + $form_names[] = $wiki_page_value->getDBkey(); |
| 144 | + } else { |
| 145 | + $form_title = $wiki_page_value->getTitle(); |
| 146 | + if ( ! is_null( $form_title ) ) { |
| 147 | + $form_names[] = $form_title->getText(); |
| 148 | + } |
144 | 149 | } |
145 | 150 | } |
146 | 151 | // if we're using a non-English language, check for the English string as well |