Opasnet:TodoTasksFixes

From Opasnet
Jump to: navigation, search

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 ==',