Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | wfLoadExtensionMessages('SemanticMediaWiki'); |
31 | 31 | } |
32 | 32 | |
33 | | - function execute($p = '') { |
| 33 | + function execute( $p ) { |
34 | 34 | global $wgOut, $wgRequest, $smwgQEnabled, $smwgRSSEnabled; |
35 | 35 | wfProfileIn('doSpecialAsk (SMW)'); |
36 | 36 | if ( ($wgRequest->getVal( 'query' ) != '') ) { // old processing |
Index: trunk/extensions/SemanticMediaWiki/specials/SMWAdmin/SMW_SpecialSMWAdmin.php |
— | — | @@ -31,14 +31,14 @@ |
32 | 32 | wfLoadExtensionMessages('SemanticMediaWiki'); |
33 | 33 | } |
34 | 34 | |
35 | | - public function execute($par = null) { |
| 35 | + public function execute( $par ) { |
36 | 36 | global $wgOut, $wgRequest, $smwgAdminRefreshStore; |
37 | 37 | global $wgServer; // "http://www.yourserver.org" |
38 | 38 | // (should be equal to 'http://'.$_SERVER['SERVER_NAME']) |
39 | 39 | global $wgScript; // "/subdirectory/of/wiki/index.php" |
40 | 40 | global $wgUser; |
41 | 41 | |
42 | | - if ( ! $wgUser->isAllowed('delete') ) { |
| 42 | + if ( !$wgUser->isAllowed( 'delete' ) ) { |
43 | 43 | $wgOut->permissionRequired('delete'); |
44 | 44 | return; |
45 | 45 | } |
Index: trunk/extensions/SemanticMediaWiki/specials/URIResolver/SMW_SpecialURIResolver.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | wfLoadExtensionMessages('SemanticMediaWiki'); |
27 | 27 | } |
28 | 28 | |
29 | | - function execute($query = '') { |
| 29 | + function execute( $query ) { |
30 | 30 | global $wgOut, $smwgIP; |
31 | 31 | wfProfileIn('SpecialURIResolver::execute (SMW)'); |
32 | 32 | if ('' == $query) { |
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByProperty.php |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | * |
59 | 59 | * @param[in] $query string Given by MediaWiki |
60 | 60 | */ |
61 | | - public function execute($query = '') { |
| 61 | + public function execute( $query ) { |
62 | 62 | global $wgRequest, $wgOut; |
63 | 63 | $this->setHeaders(); |
64 | 64 | |
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | * |
54 | 54 | * @param[in] $query string Given by MediaWiki |
55 | 55 | */ |
56 | | - public function execute($query = '') { |
| 56 | + public function execute( $query ) { |
57 | 57 | global $wgRequest, $wgOut; |
58 | 58 | $this->setHeaders(); |
59 | 59 | // get the GET parameters |
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialPageProperty.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | wfLoadExtensionMessages('SemanticMediaWiki'); |
31 | 31 | } |
32 | 32 | |
33 | | - public function execute($query = '') { |
| 33 | + public function execute( $query ) { |
34 | 34 | global $wgRequest, $wgOut, $wgUser; |
35 | 35 | |
36 | 36 | $skin = $wgUser->getSkin(); |
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_OrderedListPage.php |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | */ |
106 | 106 | protected function getNavigationLinks($query = array()) { |
107 | 107 | global $wgUser, $wgLang; |
108 | | - $sk =& $this->getSkin(); |
| 108 | + $sk = $this->getSkin(); |
109 | 109 | $limitText = $wgLang->formatNum( $this->limit ); |
110 | 110 | |
111 | 111 | $ac = count($this->articles); |