r77766 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77765‎ | r77766 | r77767 >
Date:04:51, 5 December 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added forgotten autoload
Modified paths:
  • /trunk/extensions/DSMW/DSMW.hooks.php (modified) (history)
  • /trunk/extensions/DSMW/DSMW.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DSMW/DSMW.hooks.php
@@ -135,6 +135,7 @@
136136 } else {
137137 $article->insertNewArticle( $newtext, $summary = "", false, false );
138138 }
 139+
139140 $article->doRedirect();
140141
141142 return false;
@@ -247,6 +248,7 @@
248249
249250 // $name = $name1[0];
250251 utils::writeAndFlush( '<p><b>Start push </b></p>' );
 252+
251253 foreach ( $name1 as $name ) {
252254 utils::writeAndFlush( "<span style=\"margin-left:30px;\">begin push: <A HREF=" . 'http://' . $wgServerName . $wgScriptPath . "/index.php?title=$name>" . $name . "</a></span> <br/>" );
253255 $patches = array(); /// / for each pushfeed name==> push
Index: trunk/extensions/DSMW/DSMW.php
@@ -55,6 +55,8 @@
5656 $wgExtensionMessagesFiles['DSMW'] = dirname( __FILE__ ) . '/DSMW.i18n.php';
5757 $wgExtensionAliasesFiles['DSMW'] = dirname( __FILE__ ) . '/DSMW.alias.php';
5858
 59+$wgAutoloadClasses['DSMWHooks'] = dirname( __FILE__ ) . '/DSMW.hooks.php';
 60+
5961 $wgHooks['UnknownAction'][] = 'DSMWHooks::onUnknownAction';
6062 $wgHooks['EditPage::attemptSave'][] = 'DSMWHooks::onAttemptSave';
6163 $wgHooks['EditPageBeforeConflictDiff'][] = 'DSMWHooks::onEditConflict';

Status & tagging log