Index: trunk/extensions/uniwiki/GenericEditPage/GenericEditPage.php |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | |
181 | 181 | /* add any categories that may have been passed with the |
182 | 182 | * GET request as if they started out on the page */ |
183 | | - $data = $wgRequest->data; |
| 183 | + $data = $wgRequest->getValues(); |
184 | 184 | foreach ( $data as $key => $value ) { |
185 | 185 | if ( $key == 'category' ) { |
186 | 186 | $category = substr ( $value, 9 ); // value = category-categoryname |
— | — | @@ -699,7 +699,7 @@ |
700 | 700 | |
701 | 701 | function UW_GenericEditPage_combineBeforeSave ( &$editpage_Obj ) { |
702 | 702 | global $wgRequest, $wgSwitchMode; |
703 | | - $data = $wgRequest->data; |
| 703 | + $data = $wgRequest->getValues(); |
704 | 704 | |
705 | 705 | /* if this request was triggered by the user |
706 | 706 | * pressing the "switch mode" button, then |
Index: trunk/extensions/uniwiki/Layouts/Layouts.php |
— | — | @@ -75,9 +75,9 @@ |
76 | 76 | /* don't hijack the request if we are |
77 | 77 | * in the middle of switching modes, |
78 | 78 | * previewing, or showing changes */ |
79 | | - if ( isset( $wgRequest->data['switch-mode'] ) |
80 | | - || isset( $wgRequest->data['wpTextbox1'] ) |
81 | | - || isset( $wgRequest->data['section-0'] ) ) |
| 79 | + if ( $wgRequest->getVal('switch-mode') |
| 80 | + || $wgRequest->getVal('wpTextbox1') |
| 81 | + || $wgRequest->getVal('section-0' ) ) |
82 | 82 | return true; |
83 | 83 | |
84 | 84 | /* if this page is new, |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | * and we are not submitting the form (either saving OR preview) |
88 | 88 | * and we're NOT editing an old revision */ |
89 | 89 | if ( $article->getID() === 0 |
90 | | - && ( !isset( $wgRequest->data['oldid'] ) || $article->fetchContent( $wgRequest->data['oldid'] ) === false ) |
| 90 | + && ( $wgRequest->getVal('oldid') || $article->fetchContent( $wgRequest->getVal('oldid') ) === false ) |
91 | 91 | && ( $wgRequest->getVal ( "layout" ) === NULL ) |
92 | 92 | && in_array ( $article->mTitle->getNamespace(), $wgLayoutWhiteList ) |
93 | 93 | && ( $wgRequest->getVal( "action" ) != "submit" ) ) |
Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc |
— | — | @@ -573,7 +573,7 @@ |
574 | 574 | elseif (($wgTitle->getText() == 'AddData' || $wgTitle->getText() == 'EditData') |
575 | 575 | && $wgTitle->getNamespace() == NS_SPECIAL) { |
576 | 576 | global $wgRequest; |
577 | | - $title_components = split('/', $wgRequest->data['title']); |
| 577 | + $title_components = split('/', $wgRequest->getVal('title')); |
578 | 578 | if (count($title_components) >= 2) { |
579 | 579 | $add_page_title = Title::makeTitleSafe(NS_SPECIAL, 'AddPage'); |
580 | 580 | $cancel = $sk->makeKnownLink($add_page_title->getPrefixedText() . '/' . $title_components[1], $label); |