mirror of
				https://github.com/diocloid/LinkTitles.git
				synced 2025-10-22 05:42:32 +02:00 
			
		
		
		
	Do not use doQuickEditContent.
- Fix: The special page and the maintenance script did not work in MW 1.28. Closes #24.
This commit is contained in:
		@@ -220,11 +220,12 @@ class Extension {
 | 
			
		||||
			$newText = self::parseContent($title, $text);
 | 
			
		||||
			if ( $text != $newText ) {
 | 
			
		||||
				$content = $content->getContentHandler()->unserializeContent( $newText );
 | 
			
		||||
				$page->doQuickEditContent(
 | 
			
		||||
				$page->doEditContent(
 | 
			
		||||
					$content,
 | 
			
		||||
					$context->getUser(),
 | 
			
		||||
					"Links to existing pages added by LinkTitles bot.", // TODO: i18n
 | 
			
		||||
					true // minor modification
 | 
			
		||||
					EDIT_MINOR | EDIT_FORCE_BOT,
 | 
			
		||||
					false, // baseRevId
 | 
			
		||||
					$context->getUser()
 | 
			
		||||
				);
 | 
			
		||||
			};
 | 
			
		||||
			return true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user