Navigation Menu

Skip to content

Commit

Permalink
Used recommended and PHP 5.3.3 syntax for regex patterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Dec 2, 2010
1 parent 2117317 commit edf40e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/Bal/View/Helper/Widget.php
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/core/functions/_arrays.funcs.php
Expand Up @@ -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);

Expand Down

0 comments on commit edf40e3

Please sign in to comment.