Index: trunk/extensions/ReaderFeedback/ReaderFeedback.class.php |
— | — | @@ -55,31 +55,6 @@ |
56 | 56 | ################# Utility functions ################# |
57 | 57 | |
58 | 58 | /** |
59 | | - * @param string $val |
60 | | - * @return obj array |
61 | | - * Get a memcache storage object |
62 | | - */ |
63 | | - public static function makeMemcObj( $val ) { |
64 | | - $data = (object) array(); |
65 | | - $data->value = $val; |
66 | | - $data->time = wfTimestampNow(); |
67 | | - return $data; |
68 | | - } |
69 | | - |
70 | | - /** |
71 | | - * @param mixed $data Memc data returned |
72 | | - * @param Article $article |
73 | | - * @return mixed |
74 | | - * Return memc value if not expired |
75 | | - */ |
76 | | - public static function getMemcValue( $data, $article ) { |
77 | | - if( is_object($data) && $data->time >= $article->getTouched() ) { |
78 | | - return $data->value; |
79 | | - } |
80 | | - return false; |
81 | | - } |
82 | | - |
83 | | - /** |
84 | 59 | * @param Article $article |
85 | 60 | * @param string $tag |
86 | 61 | * @param bool $forUpdate, use master? |
Index: trunk/extensions/ReaderFeedback/ReaderFeedback.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | |
42 | 42 | # Allow readers to rate pages in these namespaces |
43 | 43 | $wgFeedbackNamespaces = array(); |
44 | | -#$wgFeedbackNamespaces = array( NS_MAIN ); |
| 44 | + |
45 | 45 | # Reader feedback tags, positive and negative. [a-zA-Z] tag names only. |
46 | 46 | # Each tag has five levels, which 3 being average. The tag names are |
47 | 47 | # mapped to their weight. This is used to determine the "worst"/"best" pages. |