Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php |
— | — | @@ -24,9 +24,6 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | protected function getResultText( $res, $outputmode ) { |
28 | | - global $wgUser; |
29 | | - $skin = $wgUser->getSkin(); |
30 | | - |
31 | 28 | // initialize all necessary variables |
32 | 29 | $sum = 0; |
33 | 30 | $count = 0; |
Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Graph.php |
— | — | @@ -109,11 +109,7 @@ |
110 | 110 | global $wgGraphVizSettings; |
111 | 111 | $wgGraphVizSettings = new GraphVizSettings; |
112 | 112 | $this->isHTML = true; |
113 | | - |
114 | | - $key = 0; |
115 | | - |
116 | | - $legendInput = ''; |
117 | | - |
| 113 | + |
118 | 114 | $graphInput = "digraph $this->m_graphName {"; |
119 | 115 | if ( $this->m_graphSize != '' ) $graphInput .= "size=\"$this->m_graphSize\";"; // pack=true; layout=dot; |
120 | 116 | if ( $this->m_nodeShape ) $graphInput .= "node [shape=$this->m_nodeShape];"; |
Index: trunk/extensions/SemanticResultFormats/Exhibit/SRF_Exhibit.php |
— | — | @@ -63,7 +63,6 @@ |
64 | 64 | $remote = true; |
65 | 65 | |
66 | 66 | // fetch interwiki link |
67 | | - $list = array(); |
68 | 67 | $dbr = &wfGetDB( DB_SLAVE ); |
69 | 68 | $cl = $dbr->tableName( 'interwiki' ); |
70 | 69 | $dbres = $dbr->select( $cl, 'iw_url', "iw_prefix='" . $this->m_params['remote'] . "'", __METHOD__, array() ); |
Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php |
— | — | @@ -58,7 +58,6 @@ |
59 | 59 | protected function getResultText( $res, $outputmode ) { |
60 | 60 | global $wgUser; |
61 | 61 | $skin = $wgUser->getSkin(); |
62 | | - $result = ''; |
63 | 62 | |
64 | 63 | $events = array(); |
65 | 64 | // print all result rows |
— | — | @@ -377,7 +376,6 @@ |
378 | 377 | $days_in_prev_month = SRFCHistoricalDate::daysInMonth( $prev_year, $prev_month_num ); |
379 | 378 | $days_in_cur_month = SRFCHistoricalDate::daysInMonth( $cur_year, $cur_month_num ); |
380 | 379 | $today_string = date( 'Y n j', time() ); |
381 | | - $url_year = $wgRequest->getVal( 'year' ); |
382 | 380 | $page_name = $page_title->getPrefixedDbKey(); |
383 | 381 | |
384 | 382 | // Create table for holding title and navigation information. |
Index: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | ); |
87 | 87 | } |
88 | 88 | |
89 | | - protected function loadJavascriptAndCSS() { |
| 89 | + protected static function loadJavascriptAndCSS() { |
90 | 90 | global $wgOut; |
91 | 91 | $wgOut->addModules( 'ext.srf.jqplot' ); |
92 | 92 | $wgOut->addModules( 'ext.srf.jqplotbar' ); |