Merge "Remove JSONContentHandler::$contentClass"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 10 Sep 2014 17:53:22 +0000 (17:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 10 Sep 2014 17:53:22 +0000 (17:53 +0000)
includes/content/JSONContentHandler.php

index 33f2036..b0b7aae 100644 (file)
  */
 class JSONContentHandler extends TextContentHandler {
 
-       /**
-        * The class name of objects that should be created
-        *
-        * @deprecated override getContentClass instead
-        *
-        * @var string
-        */
-       protected $contentClass = 'JSONContent';
-
        public function __construct( $modelId = CONTENT_MODEL_JSON ) {
                parent::__construct( $modelId, array( CONTENT_FORMAT_JSON ) );
        }
 
        /**
-        * Temporary back-compat until extensions
-        * are updated to override this
-        *
         * @return string
         */
        protected function getContentClass() {
-               return $this->contentClass;
+               return 'JSONContent';
        }
 
        /**