Permalink
Browse files

Used recommended and PHP 5.3.3 syntax for regex patterns.

  • Loading branch information...
balupton committed Dec 2, 2010
1 parent 2117317 commit edf40e3214833f2d7eebb70a02c019304f278265
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/Bal/View/Helper/Widget.php
  2. +1 −1 lib/core/functions/_arrays.funcs.php
@@ -138,13 +138,13 @@ public function renderAll ( $content, array $params = array() ) {
$search =
'/' .
'\['.
- '(?<code>'.
+ '(?P<code>'.
'('.implode(array_keys($this->widgets),'|').')'.
')'.
- '\s*(?<attrs>[^\]]*)'.
+ '\s*(?P<attrs>[^\]]*)'.
'\]'.
'('.
- '(?<content>[^\]]*)'.
+ '(?P<content>[^\]]*)'.
'\[\/' . '\1' . '\]' .
')?'.
'/e';
@@ -602,7 +602,7 @@ function array_from_attributes ( $attrs = '' ) {
$array = array();
# Search
- $search = '/(?<name>\w+)\="(?<value>.*?[^\\\\])"/';
+ $search = '/(?P<name>\w+)\="(?P<value>.*?[^\\\\])"/';
$matches = array();
preg_match_all($search, $attrs, $matches);

0 comments on commit edf40e3

Please sign in to comment.