2013-03-18 19:56:12 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Thanks extension
|
|
|
|
*
|
|
|
|
* This extension adds 'thank' links that allow users to thank other users for
|
|
|
|
* specific revisions. It relies on the Echo extension to send the actual thanks.
|
2018-10-30 11:19:45 +00:00
|
|
|
* For more info see https://mediawiki.org/wiki/Extension:Thanks
|
2013-03-18 19:56:12 +00:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* This program is distributed WITHOUT ANY WARRANTY.
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
|
|
|
* @author Ryan Kaldari
|
2018-05-25 04:45:20 +00:00
|
|
|
* @license MIT
|
2013-03-18 19:56:12 +00:00
|
|
|
*/
|
|
|
|
|
2016-01-07 06:40:50 +00:00
|
|
|
if ( function_exists( 'wfLoadExtension' ) ) {
|
|
|
|
wfLoadExtension( 'Thanks' );
|
|
|
|
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
|
|
|
$wgMessagesDirs['Thanks'] = __DIR__ . '/i18n';
|
|
|
|
$wgExtensionMessagesFiles['ThanksAlias'] = __DIR__ . '/Thanks.alias.php';
|
2017-12-19 18:30:13 +00:00
|
|
|
wfWarn(
|
2016-01-07 06:40:50 +00:00
|
|
|
'Deprecated PHP entry point used for Thanks extension. Please use wfLoadExtension instead, ' .
|
|
|
|
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
2017-12-19 18:30:13 +00:00
|
|
|
);
|
2016-01-07 06:40:50 +00:00
|
|
|
} else {
|
|
|
|
die( 'This version of the Thanks extension requires MediaWiki 1.25+' );
|
|
|
|
}
|