Difference between revisions of "Testiwiki:TodoTasksFixes"

From Testiwiki
Jump to: navigation, search
(documented correction to TodoTasks)
 
m (added more stuff)
 
Line 2: Line 2:
 
SpecialTaskList_body.php line 316:<br/>
 
SpecialTaskList_body.php line 316:<br/>
 
added <code>if($fullname=="") $fullname = $username;</code>
 
added <code>if($fullname=="") $fullname = $username;</code>
 +
 +
===InProgress addition===
 +
added stuff to SpecialTaskList_Body.php<br/>
 +
Line 323:<br/>
 +
<pre>
 +
$wgOut->addWikiText(sprintf(wfMsgTL('tasklistbynameinprogress'), $fullname));
 +
$wgOut->addWikiText("<dpl> uses=Template:InProgress\n include={InProgress}.dpl\n includematch=/${fullname}/i\n </dpl>");
 +
</pre>
 +
Line 379:
 +
<pre>
 +
$wgOut->addWikiText(sprintf(wfMsgTL('tasklistbyprojinprogress'), $project));
 +
$dpl =  "<dpl>\n uses=Template:InProgress \n notuses=Template:Status Legend \n include={InProgress}.dpl \n";
 +
$dpl .= 'includematch=/project\s*=\s*([^\x2c]*\x2c)*\s*' . $project . '\s*(\x2c[^\x2c]*\s*)*$/i';
 +
$dpl .= "\n </dpl>";
 +
$wgOut->addWikiText($dpl);
 +
</pre>
 +
 +
SpecialTaskList.i18n.php:<br/>
 +
Line 24:
 +
<pre>
 +
'tasklistbynameinprogress' => '== Tasks in progress for %s ==',
 +
</pre>

Latest revision as of 12:09, 9 June 2010

Problems with task listing if user doesn't have Real name

SpecialTaskList_body.php line 316:
added if($fullname=="") $fullname = $username;

InProgress addition

added stuff to SpecialTaskList_Body.php
Line 323:

$wgOut->addWikiText(sprintf(wfMsgTL('tasklistbynameinprogress'), $fullname));
$wgOut->addWikiText("<dpl> uses=Template:InProgress\n include={InProgress}.dpl\n includematch=/${fullname}/i\n </dpl>");

Line 379:

$wgOut->addWikiText(sprintf(wfMsgTL('tasklistbyprojinprogress'), $project));
$dpl =  "<dpl>\n uses=Template:InProgress \n notuses=Template:Status Legend \n include={InProgress}.dpl \n";
$dpl .= 'includematch=/project\s*=\s*([^\x2c]*\x2c)*\s*' . $project . '\s*(\x2c[^\x2c]*\s*)*$/i';
$dpl .= "\n </dpl>";
$wgOut->addWikiText($dpl);

SpecialTaskList.i18n.php:
Line 24:

'tasklistbynameinprogress' => '== Tasks in progress for %s ==',