fixed error in #diff

This commit is contained in:
Parziphal 2013-12-02 16:26:13 -05:00
parent cd55735461
commit c75071b77c

View File

@ -69,8 +69,9 @@ class WikiPage extends Rails\ActiveRecord\Base
public function diff($version)
{
if ($otherpage = self::find_page($this->title, $version))
return Moebooru\Diff::generate($body, $otherbody);
if ($otherpage = self::find_page($this->title, $version)) {
return Moebooru\Diff::generate($this->body, $otherpage->body);
}
}
# FIXME: history shouldn't be changed on lock/unlock.