From: Aaron Schulz Date: Sat, 18 Jun 2011 18:11:28 +0000 (+0000) Subject: Use makeTitle instead of newFromText since it comes from the DB X-Git-Tag: 1.31.0-rc.0~29437 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ce029210525a2ee792a2c373ac054440dd0092a9;p=lhc%2Fweb%2Fwiklou.git Use makeTitle instead of newFromText since it comes from the DB --- diff --git a/includes/specials/SpecialNewimages.php b/includes/specials/SpecialNewimages.php index 123b9b82e9..9246fb1830 100644 --- a/includes/specials/SpecialNewimages.php +++ b/includes/specials/SpecialNewimages.php @@ -114,7 +114,7 @@ class NewFilesPager extends ReverseChronologicalPager { $name = $row->img_name; $user = User::newFromId( $row->img_user ); - $title = Title::newFromText( $name, NS_FILE ); + $title = Title::makeTitle( NS_FILE, $name ); $ul = $this->skin->link( $user->getUserpage(), $user->getName() ); $this->gallery->add(