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)
|
public function diff($version)
|
||||||
{
|
{
|
||||||
if ($otherpage = self::find_page($this->title, $version))
|
if ($otherpage = self::find_page($this->title, $version)) {
|
||||||
return Moebooru\Diff::generate($body, $otherbody);
|
return Moebooru\Diff::generate($this->body, $otherpage->body);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# FIXME: history shouldn't be changed on lock/unlock.
|
# FIXME: history shouldn't be changed on lock/unlock.
|
||||||
|
Loading…
Reference in New Issue
Block a user