Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS

SVN: [58565] trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc

 

 

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded


yaron at svn

Nov 4, 2009, 1:22 PM

Post #1 of 1 (18 views)
Permalink
SVN: [58565] trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/58565

Revision: 58565
Author: yaron
Date: 2009-11-04 21:22:33 +0000 (Wed, 04 Nov 2009)

Log Message:
-----------
Stephan Gambke's fix for templates with slashes in their names

Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc

Modified: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc 2009-11-04 20:23:24 UTC (rev 58564)
+++ trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc 2009-11-04 21:22:33 UTC (rev 58565)
@@ -328,7 +328,7 @@
// replace underlines with spaces in template name, to allow for
// searching on either
$search_template_str = str_replace('_', ' ', $tif->template_name);
- $found_instance = preg_match('/{{' . $search_template_str . '\s*[\|}]/i', str_replace('_', ' ', $existing_page_content));
+ $found_instance = preg_match('/{{' . str_replace('/','\/',$search_template_str) . '\s*[\|}]/i', str_replace('_', ' ', $existing_page_content));
if ($allow_multiple) {
// find instances of this template in the page -
// if there's at least one, re-parse this section of the



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.