Index: trunk/extensions/WikiTrust/WikiTrust.php |
— | — | @@ -20,21 +20,11 @@ |
21 | 21 | |
22 | 22 | if (!defined('MEDIAWIKI')) die(); |
23 | 23 | |
24 | | -# We use a lot of config vars. |
25 | | -global $wgWikiTrustVersion, $wgWikiTrustGadget, $wgWikiTrustShowVoteButton, $wgWikiTrustContentServerURL; |
26 | | -global $wgWikiTrustLog, $wgWikiTrustDebugLog, $wgWikiTrustDebugVerbosity; |
27 | | -global $wgWikiTrustCmd, $wgWikiTrustCmdExtraArgs, $wgWikiTrustShowMouseOrigin, |
28 | | - $wgWikiTrustBlobPath, $wgWikiTrustRepSpeed, $wgWikiTrustApiURL, $wgWikiTrustRobots; |
29 | | - |
30 | 24 | # There isn't a built in enum for php |
31 | | -if (!$wgWikiTrustVersion) |
32 | | - $wgWikiTrustVersion = "local"; ## This needs to be one of local, remote, wmf. |
33 | | -if (!$wgWikiTrustGadget) |
34 | | - $wgWikiTrustGadget = null; |
35 | | -if (!$wgWikiTrustShowVoteButton) |
36 | | - $wgWikiTrustShowVoteButton = true; // If true, the vote button is shown. |
37 | | -if (!$wgWikiTrustContentServerURL) |
38 | | - $wgWikiTrustContentServerURL = "http://localhost:10303/?"; |
| 25 | +$wgWikiTrustVersion = "local"; ## This needs to be one of local, remote, wmf. |
| 26 | +$wgWikiTrustGadget = null; |
| 27 | +$wgWikiTrustShowVoteButton = true; // If true, the vote button is shown. |
| 28 | +$wgWikiTrustContentServerURL = "http://localhost:10303/?"; |
39 | 29 | |
40 | 30 | // Debugging Verbosity |
41 | 31 | define(WIKITRUST_DEBUG, 0); |
— | — | @@ -48,31 +38,20 @@ |
49 | 39 | #$wgWikiTrustLog = "/tmp/{$wgDBname}-trust.log"; |
50 | 40 | #$wgWikiTrustDebugLog = "/tmp/{$wgDBname}-trust-debug.log"; |
51 | 41 | |
52 | | -if (!$wgWikiTrustDebugVerbosity) |
53 | | - $wgWikiTrustDebugVerbosity = WIKITRUST_WARN; // how much information to write; |
54 | | -if (!$wgWikiTrustLog) |
55 | | - $wgWikiTrustLog = "/dev/null"; |
56 | | -if (!$wgWikiTrustDebugLog) |
57 | | - $wgWikiTrustDebugLog = "/dev/null"; |
58 | | -if (!$wgWikiTrustShowMouseOrigin) |
59 | | - $wgWikiTrustShowMouseOrigin = false; |
60 | | -if (!$wgWikiTrustCmd) |
61 | | - $wgWikiTrustCmd = dirname(__FILE__) . "/eval_online_wiki"; |
62 | | -if (!$wgWikiTrustCmdExtraArgs) |
63 | | - $wgWikiTrustCmdExtraArgs = ""; |
64 | | -if (!$wgWikiTrustBlobPath) |
65 | | - $wgWikiTrustBlobPath = null; |
66 | | -if (!$wgWikiTrustRepSpeed) |
67 | | - $wgWikiTrustRepSpeed = 1.0; |
68 | | -if (!$wgWikiTrustApiURL) |
69 | | - $wgWikiTrustApiURL = "http://en.wikipedia.org/w/api.php"; |
70 | | -if (!$wgWikiTrustRobots) |
71 | | - $wgWikiTrustRobots = null; |
| 42 | +$wgWikiTrustDebugVerbosity = WIKITRUST_WARN; // how much information to write; |
| 43 | +$wgWikiTrustLog = "/dev/null"; |
| 44 | +$wgWikiTrustDebugLog = "/dev/null"; |
| 45 | +$wgWikiTrustShowMouseOrigin = false; |
| 46 | +$wgWikiTrustCmd = dirname(__FILE__) . "/eval_online_wiki"; |
| 47 | +$wgWikiTrustCmdExtraArgs = ""; |
| 48 | +$wgWikiTrustBlobPath = null; |
| 49 | +$wgWikiTrustRepSpeed = 1.0; |
| 50 | +$wgWikiTrustApiURL = "http://en.wikipedia.org/w/api.php"; |
| 51 | +$wgWikiTrustRobots = null; |
72 | 52 | |
73 | | -global $wgExtensionFunctions, $wgExtensionCredits; |
74 | 53 | $wgExtensionCredits['other'][] = array( |
75 | 54 | 'name' => 'WikiTrust', |
76 | | - 'author' => 'Ian Pye, Luca de Alfaro, Bo Adler', |
| 55 | + 'author' => array( 'Ian Pye', 'Luca de Alfaro', 'Bo Adler' ), |
77 | 56 | 'url' => 'http://wikitrust.soe.ucsc.edu', |
78 | 57 | 'description' => 'Adds wikitrust tab to visualize article trust and provide origin rev on click.' |
79 | 58 | ); |