From: jeroendedauw Date: Thu, 10 May 2012 19:23:43 +0000 (+0200) Subject: fix var name X-Git-Tag: 1.31.0-rc.0~22097^2^2~171^2~3 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=62d9300e0d698543ae7adcf834849d1ecc468518;p=lhc%2Fweb%2Fwiklou.git fix var name Change-Id: I4f0cd77d3c46df75a746ae8e808b0a1be067a357 --- diff --git a/includes/Content.php b/includes/Content.php index 56221eae38..9f6b4d61ff 100644 --- a/includes/Content.php +++ b/includes/Content.php @@ -14,7 +14,7 @@ abstract class Content { * * @var String $model_name */ - protected $model_name; + protected $modelName; /** * @since WD.1 @@ -68,8 +68,8 @@ abstract class Content { /** * @param $model_name */ - public function __construct( $model_name = null ) { - $this->model_name = $model_name; + public function __construct( $modelName = null ) { + $this->modelName = $modelName; } /** @@ -81,18 +81,18 @@ abstract class Content { * @return String the model name */ public function getModelName() { - return $this->model_name; + return $this->modelName; } /** * Throws an MWException if $model_name is not the name of the content model * supported by this Content object. * - * @param String $model_name the model to check + * @param String $modelName the model to check */ - protected function checkModelName( $model_name ) { - if ( $model_name !== $this->model_name ) { - throw new MWException( "Bad content model: expected " . $this->model_name . " but got found " . $model_name ); + protected function checkModelName( $modelName ) { + if ( $modelName !== $this->modelName ) { + throw new MWException( "Bad content model: expected " . $this->modelName . " but got found " . $modelName ); } }