Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -740,23 +740,23 @@ |
741 | 741 | $key = $this->page; |
742 | 742 | |
743 | 743 | // TODO: encapsulate somewhere |
744 | | - $page = TranslatablePage::newFromTitle( $this->group->title ); |
| 744 | + $page = TranslatablePage::newFromTitle( $this->group->getTitle() ); |
745 | 745 | $rev = $page->getTransRev( "$key/$code" ); |
746 | 746 | $latest = $page->getMarkedTag(); |
747 | 747 | if ( $rev === $latest ) { |
748 | 748 | return null; |
749 | 749 | } |
750 | 750 | |
751 | | - $oldpage = TranslatablePage::newFromRevision( $this->group->title, $rev ); |
| 751 | + $oldpage = TranslatablePage::newFromRevision( $this->group->getTitle(), $rev ); |
752 | 752 | $oldtext = $newtext = null; |
753 | 753 | foreach ( $oldpage->getParse()->getSectionsForSave() as $section ) { |
754 | | - if ( $this->group->title->getPrefixedDBKey() . '/' . $section->id === $key ) { |
| 754 | + if ( $this->group->getTitle()->getPrefixedDBKey() . '/' . $section->id === $key ) { |
755 | 755 | $oldtext = $section->getTextForTrans(); |
756 | 756 | } |
757 | 757 | } |
758 | 758 | |
759 | 759 | foreach ( $page->getParse()->getSectionsForSave() as $section ) { |
760 | | - if ( $this->group->title->getPrefixedDBKey() . '/' . $section->id === $key ) { |
| 760 | + if ( $this->group->getTitle()->getPrefixedDBKey() . '/' . $section->id === $key ) { |
761 | 761 | $newtext = $section->getTextForTrans(); |
762 | 762 | } |
763 | 763 | } |