Yaron Koren has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/103591


Change subject: Fixed handling of carets ("^") in template names
......................................................................

Fixed handling of carets ("^") in template names

Change-Id: Ic5dea45359c89243bd73f05d45dbce6902b7ffbc
---
M includes/SF_FormPrinter.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms 
refs/changes/91/103591/1

diff --git a/includes/SF_FormPrinter.php b/includes/SF_FormPrinter.php
index 9e6dc3f..a07295b 100644
--- a/includes/SF_FormPrinter.php
+++ b/includes/SF_FormPrinter.php
@@ -640,8 +640,8 @@
                                                // searching on either.
                                                $search_template_str = 
str_replace( '_', ' ', $template_name );
                                                $preg_match_template_str = 
str_replace(
-                                                       array( '/', '(', ')' ),
-                                                       array( '\/', '\(', '\)' 
),
+                                                       array( '/', '(', ')', 
'^' ),
+                                                       array( '\/', '\(', 
'\)', '\^' ),
                                                        $search_template_str );
                                                $found_instance = preg_match( 
'/{{' . $preg_match_template_str . '\s*[\|}]/i', str_replace( '_', ' ', 
$existing_page_content ) );
                                                if ( $allow_multiple ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/103591
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic5dea45359c89243bd73f05d45dbce6902b7ffbc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to