fixed error in #diff
This commit is contained in:
parent
cd55735461
commit
c75071b77c
@ -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.
|
||||
|
Reference in New Issue
Block a user