コード例 #1
0
ファイル: qp_user.php プロジェクト: schwarer2006/wikia
 * * Place the files from the extension archive there.
 * * Add this line at the end of your LocalSettings.php file :
 * require_once "$IP/extensions/QPoll/qp_user.php";
 *
 * @version 0.8.0a
 * @link http://www.mediawiki.org/wiki/Extension:QPoll
 * @author QuestPC <*****@*****.**>
 */
if (!defined('MEDIAWIKI')) {
    die("This file is part of the QPoll extension. It is not a valid entry point.\n");
}
# interpretation scripts namespace
define('NS_QP_INTERPRETATION', 800);
# talk namespace is always + 1
define('NS_QP_INTERPRETATION_TALK', 801);
qp_Setup::init();
/**
 * Extension's parameters.
 */
$wgExtensionCredits['parserhook'][] = array('path' => __FILE__, 'name' => 'QPoll', 'version' => '0.8.0a', 'author' => 'Dmitriy Sintsov', 'url' => 'https://www.mediawiki.org/wiki/Extension:QPoll', 'descriptionmsg' => 'qp_desc');
$wgExtensionCredits['specialpage'][] = array('path' => __FILE__, 'name' => 'QPoll results page', 'version' => '0.8.0a', 'author' => 'Dmitriy Sintsov', 'url' => 'https://www.mediawiki.org/wiki/Extension:QPoll', 'descriptionmsg' => 'qp_desc-sp');
if (isset($wgResourceModules)) {
    $wgResourceModules['ext.qpoll'] = array('scripts' => 'clientside/qp_user.js', 'styles' => 'clientside/qp_user.css', 'localBasePath' => dirname(__FILE__), 'remoteExtPath' => 'QPoll');
    $wgResourceModules['ext.qpoll.special.pollresults'] = array('styles' => 'clientside/qp_results.css', 'localBasePath' => dirname(__FILE__), 'remoteExtPath' => 'QPoll');
}
/**
 * Interpretation script debug function
 * @param $args  array $args[0] - string message
 *                     $args[1] - variable to dump (optional)
 *                     $args[2] - bool true / false enable / disable output (optional)
 */