Index: trunk/extensions/DSMW/DSMW.hooks.php |
— | — | @@ -135,6 +135,7 @@ |
136 | 136 | } else { |
137 | 137 | $article->insertNewArticle( $newtext, $summary = "", false, false ); |
138 | 138 | } |
| 139 | + |
139 | 140 | $article->doRedirect(); |
140 | 141 | |
141 | 142 | return false; |
— | — | @@ -247,6 +248,7 @@ |
248 | 249 | |
249 | 250 | // $name = $name1[0]; |
250 | 251 | utils::writeAndFlush( '<p><b>Start push </b></p>' ); |
| 252 | + |
251 | 253 | foreach ( $name1 as $name ) { |
252 | 254 | utils::writeAndFlush( "<span style=\"margin-left:30px;\">begin push: <A HREF=" . 'http://' . $wgServerName . $wgScriptPath . "/index.php?title=$name>" . $name . "</a></span> <br/>" ); |
253 | 255 | $patches = array(); /// / for each pushfeed name==> push |
Index: trunk/extensions/DSMW/DSMW.php |
— | — | @@ -55,6 +55,8 @@ |
56 | 56 | $wgExtensionMessagesFiles['DSMW'] = dirname( __FILE__ ) . '/DSMW.i18n.php'; |
57 | 57 | $wgExtensionAliasesFiles['DSMW'] = dirname( __FILE__ ) . '/DSMW.alias.php'; |
58 | 58 | |
| 59 | +$wgAutoloadClasses['DSMWHooks'] = dirname( __FILE__ ) . '/DSMW.hooks.php'; |
| 60 | + |
59 | 61 | $wgHooks['UnknownAction'][] = 'DSMWHooks::onUnknownAction'; |
60 | 62 | $wgHooks['EditPage::attemptSave'][] = 'DSMWHooks::onAttemptSave'; |
61 | 63 | $wgHooks['EditPageBeforeConflictDiff'][] = 'DSMWHooks::onEditConflict'; |