From 7711625dceac6361d3d97c68ed40a4731188bc2c Mon Sep 17 00:00:00 2001 From: James Montalvo Date: Fri, 6 Jun 2014 15:15:49 -0500 Subject: [PATCH] forgot autoload --- TalkRight.body.php => TalkRight.class.php | 0 TalkRight.php | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename TalkRight.body.php => TalkRight.class.php (100%) diff --git a/TalkRight.body.php b/TalkRight.class.php similarity index 100% rename from TalkRight.body.php rename to TalkRight.class.php diff --git a/TalkRight.php b/TalkRight.php index d618051..8074351 100644 --- a/TalkRight.php +++ b/TalkRight.php @@ -16,8 +16,8 @@ # Extension credits $GLOBALS['wgExtensionCredits']['other'][] = array( 'name' => 'TalkRight', - 'version' => '1.5.1', - 'author' => array('P.Levêque', 'Marc Noirot', 'James Montalvo'), + 'version' => '1.5.0', + 'author' => array('P.Leveque', 'Marc Noirot', 'James Montalvo'), 'description' => 'Adds a talk permission independent from article edition', 'url' => 'http://www.mediawiki.org/wiki/Extension:Talkright', ); @@ -26,5 +26,8 @@ $GLOBALS['wgHooks']['AlternateEdit'][] = 'TalkRight::alternateEdit'; $GLOBALS['wgHooks']['ParserBeforeStrip'][] = 'TalkRight::giveEditRightsWhenViewingTalkPages'; +# Autoload +$GLOBALS['wgAutoloadClasses']['TalkRight'] = __DIR__ . '/TalkRight.class.php'; + # Global 'talk' right $GLOBALS['wgAvailableRights'][] = 'talk'; \ No newline at end of file