Index: trunk/extensions/MoodBar/MoodBar.hooks.php |
— | — | @@ -43,9 +43,9 @@ |
44 | 44 | $res = $dbr->selectRow( array( 'moodbar_feedback', 'moodbar_feedback_response' ), |
45 | 45 | array( 'mbf_id' ), |
46 | 46 | array( 'mbf_id = mbfr_mbf_id', |
47 | | - 'mbfr_id' => intval( $item ), |
48 | | - 'mbf_user_id' => $User->getId() ), |
49 | | - __METHOD__ ); |
| 47 | + 'mbfr_id' => intval( $item ), |
| 48 | + 'mbf_user_id' => $User->getId() |
| 49 | + ), __METHOD__ ); |
50 | 50 | |
51 | 51 | if ( $res === false ) { |
52 | 52 | $isAbleToMark = false; |
— | — | @@ -127,24 +127,24 @@ |
128 | 128 | * @param $updater DatabaseUpdater |
129 | 129 | */ |
130 | 130 | public static function onLoadExtensionSchemaUpdates( $updater = null ) { |
131 | | - $dir = dirname(__FILE__) . '/sql/'; |
132 | | - $updater->addExtensionTable( 'moodbar_feedback', $dir . 'MoodBar.sql' ); |
| 131 | + $dir = dirname(__FILE__) . '/sql'; |
| 132 | + $updater->addExtensionTable( 'moodbar_feedback', "$dir/MoodBar.sql" ); |
133 | 133 | |
134 | | - $updater->addExtensionField( 'moodbar_feedback', 'mbf_user_editcount', $dir . 'mbf_user_editcount.sql' ); |
| 134 | + $updater->addExtensionField( 'moodbar_feedback', 'mbf_user_editcount', "$dir/mbf_user_editcount.sql" ); |
135 | 135 | |
136 | | - $updater->addExtensionIndex( 'moodbar_feedback', 'mbf_type_timestamp_id', $dir . 'AddIDToIndexes.sql' ); |
| 136 | + $updater->addExtensionIndex( 'moodbar_feedback', 'mbf_type_timestamp_id', "$dir/AddIDToIndexes.sql" ); |
137 | 137 | |
138 | 138 | $updater->addExtensionUpdate( array( 'dropIndex', 'moodbar_feedback', |
139 | | - 'mbf_userid_ip_timestamp', $dir . 'AddIDToIndexes2.sql', true ) |
| 139 | + 'mbf_userid_ip_timestamp', "$dir/AddIDToIndexes2.sql", true ) |
140 | 140 | ); |
141 | 141 | |
142 | | - $updater->addExtensionIndex( 'moodbar_feedback', 'mbfr_timestamp_id', $dir . 'mbf_timestamp_id.sql' ); |
| 142 | + $updater->addExtensionIndex( 'moodbar_feedback', 'mbfr_timestamp_id', "$dir/mbf_timestamp_id.sql" ); |
143 | 143 | |
144 | | - $updater->addExtensionField( 'moodbar_feedback', 'mbf_hidden_state', $dir . 'mbf_hidden_state.sql' ); |
| 144 | + $updater->addExtensionField( 'moodbar_feedback', 'mbf_hidden_state', "$dir/mbf_hidden_state.sql" ); |
145 | 145 | |
146 | | - $updater->addExtensionTable( 'moodbar_feedback_response', $dir . 'moodbar_feedback_response.sql' ); |
| 146 | + $updater->addExtensionTable( 'moodbar_feedback_response', "$dir/moodbar_feedback_response.sql" ); |
147 | 147 | |
148 | | - $updater->addExtensionIndex( 'moodbar_feedback_response', 'mbfr_timestamp_id', $dir . 'mbfr_timestamp_id_index.sql' ); |
| 148 | + $updater->addExtensionIndex( 'moodbar_feedback_response', 'mbfr_timestamp_id', "$dir/mbfr_timestamp_id_index.sql" ); |
149 | 149 | |
150 | 150 | return true; |
151 | 151 | } |
— | — | @@ -155,12 +155,12 @@ |
156 | 156 | * @return array of bucket names |
157 | 157 | */ |
158 | 158 | public static function getUserBuckets( $user ) { |
159 | | - $id = $user->getID(); |
| 159 | + //$id = $user->getID(); |
160 | 160 | $buckets = array(); |
161 | 161 | |
162 | 162 | // No show-time bucketing yet. This method is a stub. |
163 | 163 | |
164 | | - sort($buckets); |
| 164 | + //sort($buckets); |
165 | 165 | return $buckets; |
166 | 166 | } |
167 | 167 | } |