This is an example bug for tracking patches generated during a 'hacking mediwaiki' tutorial during the 2012 hackathon in Pune.
Version: unspecified
Severity: normal
• Awjrichards | |
Feb 9 2012, 8:52 PM |
F9148: my.patch | |
Nov 22 2014, 12:18 AM |
F9146: pat.patch | |
Nov 22 2014, 12:18 AM |
F9147: mypatch.patch | |
Nov 22 2014, 12:18 AM |
F9145: my_example.patch | |
Nov 22 2014, 12:18 AM |
This is an example bug for tracking patches generated during a 'hacking mediwaiki' tutorial during the 2012 hackathon in Pune.
Version: unspecified
Severity: normal
Created attachment 9980
Example patch submission
These are some changes to make the example extension way more awesome. This patch makes it possible to dynamically generate a 'Hello world' message. It can take an optional 'name' parameter to say 'Hello $name'. If 'name' is not present, it will randomly select a name from a list of names in code.
Attached:
chughakshay16 wrote:
echoes the name taken from url
this newly made changes allow us to print the name parameter passed in url along with the word 'Hello'
Attached:
ashwini7security wrote:
Patch which extends the funtionality of special page
Attached:
ashwini7security wrote:
Comment on attachment 9982
Patch which extends the funtionality of special page
Index: Example/Example.i18n.php
- Example/Example.i18n.php (revision 111148)
+++ Example/Example.i18n.php (working copy)
@@ -6,8 +6,10 @@
// English
$messages[ 'en' ] = array('example-example' => 'This is an example!',+ 'example-hello_world'=> 'hello $1',
);+
// Message documentation for translators
$messages[ 'qqq' ] = array('example-example' => 'This is just an example message. Nothing special.',Index: Example/Example.body.php
- Example/Example.body.php (revision 111148)
+++ Example/Example.body.php (working copy)
@@ -9,9 +9,23 @@/** * Make your magic happen! */+ function getRandomName(){
+ $name_array=array();
+ $name_array ['en'] = array (
+ 'first'=> 'Ashwini',
+ 'second'=> 'Arthur',
+);
+}function execute( $par ) { global $wgOut;+ global $wgRequest;
+ $wgOut->addWikiMsg( 'example-hello_world' );
+ echo "Hello wikimedia";
- $wgOut->addWikiMsg( 'example-example' );
+
+ $wgOut->addwikimsg('example-hello_world',$this->getRandomName());
+ $wgOut->addwikimsg('example-hello_world',$wgRequest->getText('Ashwini'));
+
+}}
bharath_ves wrote:
prints the name specified in the url
this newly made changes can display the value of the name parameter passed in the url if it is mentioned otherwise it displays a random name
Attached:
Can somebody please review the patches and afterwards replace the "patch-need-review" keyword by "patch-reviewed"?
(In reply to comment #6)
Can somebody please review the patches and afterwards replace the
"patch-need-review" keyword by "patch-reviewed"?
done