Permalink
Browse files

WordpressTwigExtension.php: Call-time pass-by-reference has been depr…

…ecated.
  • Loading branch information...
1 parent d150d18 commit 758ea3c95809151911bf30c738036686687c2409 @kayue committed Jul 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Extensions/WordpressTwigExtension.php
@@ -50,7 +50,7 @@ public function getGlobals()
public function getFilters()
{
return array(
- 'wpautop' => new \Twig_Filter_Method(&$this, 'wpautop'),
+ 'wpautop' => new \Twig_Filter_Method($this, 'wpautop'),
);
}
@@ -204,7 +204,7 @@ public function getThumbnail(Post $post, $size = 'thumbnail', $keepRatio = false
$nearestSize = $this->getNearestSize($thumbnail, $size, $keepRatio);
if ($nearestSize === null) return null;
-
+
return str_replace($basename, $nearestSize['file'], $thumbnail->getGuid());
}

0 comments on commit 758ea3c

Please sign in to comment.