Index: trunk/extensions/MoodBar/FeedbackItem.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | * @param $info Associative array of values |
49 | 49 | * Valid keys: type, user, comment, page, flags, timestamp, |
50 | 50 | * useragent, system, locale, bucket, anonymize |
51 | | - * @return MBFeedback object. |
| 51 | + * @return MBFeedbackItem object. |
52 | 52 | */ |
53 | 53 | public static function create( $info ) { |
54 | 54 | $newObject = new self(); |
— | — | @@ -170,9 +170,9 @@ |
171 | 171 | */ |
172 | 172 | public function validatePropertyValue( $key, $value ) { |
173 | 173 | if ( $key == 'user' ) { |
174 | | - return $value instanceof User || $value instanceof StubUser; |
| 174 | + return $value instanceof User; |
175 | 175 | } elseif ( $key == 'page' ) { |
176 | | - return $value instanceof Title || $value instanceof StubTitle; |
| 176 | + return $value instanceof Title; |
177 | 177 | } elseif ( $key == 'type' ) { |
178 | 178 | return in_array( $value, self::$validTypes ); |
179 | 179 | } |