Skip to content

Commit

Permalink
fix for call time pass by reference (php 5.4 compatability)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Aug 1, 2012
1 parent a139cd9 commit 1dca8f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class.dgs-agency.php
Expand Up @@ -7,7 +7,7 @@ class DGS_Agency {

function __construct( $name, $id, $url ) {

foreach ( get_object_vars( &$this ) as $var => $value )
foreach ( get_object_vars( $this ) as $var => $value )
$this->$var = $$var;

}
Expand Down
4 changes: 3 additions & 1 deletion includes/functions.php
Expand Up @@ -51,7 +51,9 @@ function dgs_singular( $plural ) {
'agencies' => 'agency',
'options' => 'option',
'fields' => 'field',
'items' => 'item' );
'items' => 'item',
'bureaus' => 'bureau',
);

//no translation, safe fallback, don't err out
if ( !array_key_exists( $plural, $trans ) )
Expand Down

0 comments on commit 1dca8f0

Please sign in to comment.