Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -514,19 +514,6 @@ |
515 | 515 | ################# Synchronization and link update functions ################# |
516 | 516 | |
517 | 517 | /** |
518 | | - * @param mixed $data Memc data returned |
519 | | - * @param Article $article |
520 | | - * @return mixed |
521 | | - * Return memc value if not expired |
522 | | - */ |
523 | | - public static function getMemcValue( $data, $article ) { |
524 | | - if( is_object($data) && $data->time > $article->getTouched() ) { |
525 | | - return $data->value; |
526 | | - } |
527 | | - return false; |
528 | | - } |
529 | | - |
530 | | - /** |
531 | 518 | * @param FlaggedRevision $srev, the stable revision |
532 | 519 | * @param Article $article |
533 | 520 | * @param ParserOutput $stableOutput, will fetch if not given |
— | — | @@ -613,7 +600,7 @@ |
614 | 601 | |
615 | 602 | return $synced; |
616 | 603 | } |
617 | | - |
| 604 | + |
618 | 605 | /** |
619 | 606 | * @param string $val |
620 | 607 | * @return obj array |
— | — | @@ -627,6 +614,19 @@ |
628 | 615 | } |
629 | 616 | |
630 | 617 | /** |
| 618 | + * @param mixed $data Memc data returned |
| 619 | + * @param Article $article |
| 620 | + * @return mixed |
| 621 | + * Return memc value if not expired |
| 622 | + */ |
| 623 | + public static function getMemcValue( $data, $article ) { |
| 624 | + if( is_object($data) && $data->time >= $article->getTouched() ) { |
| 625 | + return $data->value; |
| 626 | + } |
| 627 | + return false; |
| 628 | + } |
| 629 | + |
| 630 | + /** |
631 | 631 | * @param Article $article |
632 | 632 | * @param int $revId, the *stable* rev ID |
633 | 633 | * @param bool $forUpdate, use master? |