Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Increase percision on RegEx statement that was triggering on wiki con…
Browse files Browse the repository at this point in the history
…tent if it contained the string 'class' followed by the string 'row' eg. 'Middle class borrowing has increased'.
  • Loading branch information
xander-miller committed Sep 21, 2013
1 parent 7647887 commit 1f494b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Strapping.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function execute() {

<!-- innerbodycontent -->
<?php # Peek into the body content of articles, to see if a custom layout is used
if ($wgStrappingSkinUseStandardLayout || preg_match("/class.*row/i", $this->data['bodycontent']) && $this->data['articleid']) {
if ($wgStrappingSkinUseStandardLayout || preg_match("/<div.*class.*row.*>/i", $this->data['bodycontent']) && $this->data['articleid']) {
# If there's a custom layout, the H1 and layout is up to the page ?>
<div id="innerbodycontent" class="layout">
<h1 id="firstHeading" class="firstHeading page-header">
Expand Down

0 comments on commit 1f494b8

Please sign in to comment.