Index: trunk/extensions/LiquidThreads/classes/ThreadHistoryPager.php |
— | — | @@ -103,7 +103,11 @@ |
104 | 104 | $args = array(); |
105 | 105 | $revision = ThreadRevision::loadFromRow( $this->mCurrentRow ); |
106 | 106 | |
107 | | - $args[] = $revision->getChangeObject()->title()->getPrefixedText(); |
| 107 | + if ( $revision->getChangeObject()->title() ) { |
| 108 | + $args[] = $revision->getChangeObject()->title()->getPrefixedText(); |
| 109 | + } else { |
| 110 | + $args[] = ''; |
| 111 | + } |
108 | 112 | |
109 | 113 | switch( $type ) { |
110 | 114 | case Threads::CHANGE_EDITED_SUBJECT: |
— | — | @@ -114,8 +118,13 @@ |
115 | 119 | case Threads::CHANGE_ROOT_BLANKED: |
116 | 120 | $post = $revision->getChangeObject(); |
117 | 121 | $view = $this->view; |
118 | | - $diffLink = $view->diffPermalinkURL( $post, $revision ); |
119 | | - $args[] = $diffLink; |
| 122 | + |
| 123 | + if ( $post->title() ) { |
| 124 | + $diffLink = $view->diffPermalinkURL( $post, $revision ); |
| 125 | + $args[] = $diffLink; |
| 126 | + } else { |
| 127 | + $args[] = ''; |
| 128 | + } |
120 | 129 | break; |
121 | 130 | } |
122 | 131 | |