r107252 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107251‎ | r107252 | r107253 >
Date:00:19, 25 December 2011
Author:reedy
Status:ok
Tags:
Comment:
Add missing method call
Modified paths:
  • /trunk/extensions/OpenStackManager/special/SpecialNovaDomain.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaInstance.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaKey.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaProject.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaPuppetGroup.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaRole.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaSecurityGroup.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaSudoer.php (modified) (history)
  • /trunk/extensions/OpenStackManager/special/SpecialNovaVolume.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/special/SpecialNovaInstance.php
@@ -482,7 +482,7 @@
483483 $instanceId = $instance->getInstanceId();
484484 $instanceId = htmlentities( $instanceId );
485485 $title = Title::newFromText( $instanceId, NS_NOVA_RESOURCE );
486 - $instanceIdLink = Linker::( $title, $instanceId );
 486+ $instanceIdLink = Linker::link( $title, $instanceId );
487487 $instanceOut .= Html::rawElement( 'td', array(), $instanceIdLink );
488488 $instanceOut .= Html::element( 'td', array(), $instance->getInstanceState() );
489489 $instanceOut .= Html::element( 'td', array(), $instance->getInstanceType() );
@@ -505,25 +505,25 @@
506506 $instanceOut .= Html::element( 'td', array(), $instance->getLaunchTime() );
507507 if ( $this->userLDAP->inRole( 'sysadmin', $project ) ) {
508508 $msg = wfMsgHtml( 'openstackmanager-delete' );
509 - $link = Linker::( $this->getTitle(), $msg, array(),
 509+ $link = Linker::link( $this->getTitle(), $msg, array(),
510510 array( 'action' => 'delete',
511511 'project' => $project,
512512 'instanceid' => $instance->getInstanceId() ) );
513513 $actions = Html::rawElement( 'li', array(), $link );
514514 $msg = wfMsgHtml( 'openstackmanager-reboot' );
515 - $link = Linker::( $this->getTitle(), $msg, array(),
 515+ $link = Linker::link( $this->getTitle(), $msg, array(),
516516 array( 'action' => 'reboot',
517517 'project' => $project,
518518 'instanceid' => $instance->getInstanceId() ) );
519519 $actions .= Html::rawElement( 'li', array(), $link );
520520 $msg = wfMsgHtml( 'openstackmanager-configure' );
521 - $link = Linker::( $this->getTitle(), $msg, array(),
 521+ $link = Linker::link( $this->getTitle(), $msg, array(),
522522 array( 'action' => 'configure',
523523 'project' => $project,
524524 'instanceid' => $instance->getInstanceId() ) );
525525 $actions .= Html::rawElement( 'li', array(), $link );
526526 $msg = wfMsgHtml( 'openstackmanager-getconsoleoutput' );
527 - $link = Linker::( $this->getTitle(), $msg, array(),
 527+ $link = Linker::link( $this->getTitle(), $msg, array(),
528528 array( 'action' => 'consoleoutput',
529529 'project' => $project,
530530 'instanceid' => $instance->getInstanceId() ) );
@@ -540,7 +540,7 @@
541541 foreach ( $userProjects as $project ) {
542542 $out .= Html::element( 'h2', array(), $project );
543543 if ( $this->userLDAP->inRole( 'sysadmin', $project ) ) {
544 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createinstance' ), array(), array( 'action' => 'create', 'project' => $project ) );
 544+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createinstance' ), array(), array( 'action' => 'create', 'project' => $project ) );
545545 }
546546 if ( isset( $projectArr["$project"] ) ) {
547547 $projectOut = $header;
@@ -582,7 +582,7 @@
583583 }
584584
585585 $out = '<br />';
586 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 586+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
587587
588588 $this->getOutput()->addHTML( $out );
589589 return true;
@@ -615,7 +615,7 @@
616616 }
617617
618618 $out = '<br />';
619 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 619+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
620620
621621 $this->getOutput()->addHTML( $out );
622622 return true;
@@ -636,7 +636,7 @@
637637 }
638638
639639 $out = '<br />';
640 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 640+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
641641
642642 $this->getOutput()->addHTML( $out );
643643 return true;
@@ -663,7 +663,7 @@
664664 }
665665
666666 $out = '<br />';
667 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 667+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
668668
669669 $this->getOutput()->addHTML( $out );
670670 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaSecurityGroup.php
@@ -267,7 +267,7 @@
268268 'protocol' => $ipprotocol,
269269 'ranges' => implode( ',', $ranges ),
270270 'groups' => implode( ',', $groupinfo ) );
271 - $link = Linker::( $this->getTitle(), $msg, array(), $args );
 271+ $link = Linker::link( $this->getTitle(), $msg, array(), $args );
272272 $actions = Html::rawElement( 'li', array(), $link );
273273 $actions = Html::rawElement( 'ul', array(), $actions );
274274 $ruleOut .= Html::rawElement( 'td', array(), $actions );
@@ -279,19 +279,19 @@
280280 $groupOut .= Html::rawElement( 'td', array(), '' );
281281 }
282282 $msg = wfMsgHtml( 'openstackmanager-delete' );
283 - $link = Linker::( $this->getTitle(), $msg, array(),
 283+ $link = Linker::link( $this->getTitle(), $msg, array(),
284284 array( 'action' => 'delete',
285285 'project' => $project,
286286 'groupname' => $group->getGroupName() ) );
287287 $actions = Html::rawElement( 'li', array(), $link );
288288 #$msg = wfMsgHtml( 'openstackmanager-configure' );
289 - #$link = Linker::( $this->getTitle(), $msg, array(),
 289+ #$link = Linker::link( $this->getTitle(), $msg, array(),
290290 # array( 'action' => 'configure',
291291 # 'project' => $project,
292292 # 'groupname' => $group->getGroupName() ) );
293293 #$actions .= Html::rawElement( 'li', array(), $link );
294294 $msg = wfMsgHtml( 'openstackmanager-addrule-action' );
295 - $link = Linker::( $this->getTitle(), $msg, array(),
 295+ $link = Linker::link( $this->getTitle(), $msg, array(),
296296 array( 'action' => 'addrule',
297297 'project' => $project,
298298 'groupname' => $group->getGroupName() ) );
@@ -306,7 +306,7 @@
307307 }
308308 foreach ( $userProjects as $project ) {
309309 $out .= Html::element( 'h2', array(), $project );
310 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createnewsecuritygroup' ), array(),
 310+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createnewsecuritygroup' ), array(),
311311 array( 'action' => 'create', 'project' => $project ) );
312312 if ( isset( $projectArr["$project"] ) ) {
313313 $projectOut = $groupheader;
@@ -503,7 +503,7 @@
504504 }
505505
506506 $out = '<br />';
507 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 507+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
508508
509509 $this->getOutput()->addHTML( $out );
510510 return true;
@@ -533,7 +533,7 @@
534534 }
535535
536536 $out = '<br />';
537 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 537+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
538538
539539 $this->getOutput()->addHTML( $out );
540540 return true;
@@ -562,7 +562,7 @@
563563 }
564564
565565 $out = '<br />';
566 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 566+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
567567
568568 $this->getOutput()->addHTML( $out );
569569 return true;
@@ -605,7 +605,7 @@
606606 }
607607
608608 $out = '<br />';
609 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 609+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
610610
611611 $this->getOutput()->addHTML( $out );
612612 return true;
@@ -651,7 +651,7 @@
652652 }
653653
654654 $out = '<br />';
655 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 655+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
656656
657657 $this->getOutput()->addHTML( $out );
658658 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaProject.php
@@ -225,7 +225,7 @@
226226
227227 $out = '';
228228
229 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createproject' ), array(), array( 'action' => 'create' ) );
 229+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createproject' ), array(), array( 'action' => 'create' ) );
230230 $projectsOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-projectname' ) );
231231 $projectsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-members' ) );
232232 $projectsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-roles' ) );
@@ -238,7 +238,7 @@
239239 $projectName = $project->getProjectName();
240240 $projectName = htmlentities( $projectName );
241241 $title = Title::newFromText( $projectName, NS_NOVA_RESOURCE );
242 - $projectNameLink = Linker::( $title, $projectName );
 242+ $projectNameLink = Linker::link( $title, $projectName );
243243 $projectOut = Html::rawElement( 'td', array(), $projectNameLink );
244244 $projectMembers = $project->getMembers();
245245 $memberOut = '';
@@ -261,10 +261,10 @@
262262 }
263263 $roleMembers = Html::rawElement( 'ul', array(), $roleMembers );
264264 $roleOut .= Html::rawElement( 'td', array(), $roleMembers );
265 - $link = Linker::( $specialRoleTitle, wfMsgHtml( 'openstackmanager-addrolemember' ), array(),
 265+ $link = Linker::link( $specialRoleTitle, wfMsgHtml( 'openstackmanager-addrolemember' ), array(),
266266 array( 'action' => 'addmember', 'projectname' => $projectName, 'rolename' => $role->getRoleName(), 'returnto' => 'Special:NovaProject' ) );
267267 $actions = Html::rawElement( 'li', array(), $link );
268 - $link = Linker::( $specialRoleTitle, wfMsgHtml( 'openstackmanager-removerolemember' ), array(),
 268+ $link = Linker::link( $specialRoleTitle, wfMsgHtml( 'openstackmanager-removerolemember' ), array(),
269269 array( 'action' => 'deletemember', 'projectname' => $projectName, 'rolename' => $role->getRoleName(), 'returnto' => 'Special:NovaProject' ) );
270270 $actions .= Html::rawElement( 'li', array(), $link );
271271 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -273,13 +273,13 @@
274274 }
275275 $rolesOut = Html::rawElement( 'table', array( 'class' => 'wikitable sortable collapsible' ), $rolesOut );
276276 $projectOut .= Html::rawElement( 'td', array( 'class' => 'Nova_cell' ), $rolesOut );
277 - $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-deleteproject' ), array(),
 277+ $link = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-deleteproject' ), array(),
278278 array( 'action' => 'delete', 'projectname' => $projectName ) );
279279 $actions = Html::rawElement( 'li', array(), $link );
280 - $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-addmember' ), array(),
 280+ $link = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-addmember' ), array(),
281281 array( 'action' => 'addmember', 'projectname' => $projectName ) );
282282 $actions .= Html::rawElement( 'li', array(), $link );
283 - $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-removemember' ), array(),
 283+ $link = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-removemember' ), array(),
284284 array( 'action' => 'deletemember', 'projectname' => $projectName ) );
285285 $actions .= Html::rawElement( 'li', array(), $link );
286286 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -366,7 +366,7 @@
367367 $this->getOutput()->addWikiMsg( 'openstackmanager-createdproject' );
368368
369369 $out = '<br />';
370 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 370+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
371371 $this->getOutput()->addHTML( $out );
372372
373373 return true;
@@ -388,7 +388,7 @@
389389 }
390390
391391 $out = '<br />';
392 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 392+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
393393 $this->getOutput()->addHTML( $out );
394394
395395 return true;
@@ -413,7 +413,7 @@
414414 }
415415
416416 $out = '<br />';
417 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 417+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
418418 $this->getOutput()->addHTML( $out );
419419
420420 return true;
@@ -441,7 +441,7 @@
442442 }
443443 $out = '<br />';
444444
445 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 445+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
446446 $this->getOutput()->addHTML( $out );
447447
448448 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaDomain.php
@@ -131,7 +131,7 @@
132132 $this->setHeaders();
133133 $this->getOutput()->setPagetitle( wfMsg( 'openstackmanager-domainlist' ) );
134134
135 - $out = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createdomain' ), array(), array( 'action' => 'create' ) );
 135+ $out = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createdomain' ), array(), array( 'action' => 'create' ) );
136136 $domainsOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-domainname' ) );
137137 $domainsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-fqdn' ) );
138138 $domainsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-location' ) );
@@ -145,7 +145,7 @@
146146 $domainOut .= Html::element( 'td', array(), $fqdn );
147147 $domainOut .= Html::element( 'td', array(), $location );
148148 $msg = wfMsgHtml( 'openstackmanager-delete' );
149 - $link = Linker::( $this->getTitle(), $msg, array(),
 149+ $link = Linker::link( $this->getTitle(), $msg, array(),
150150 array( 'action' => 'delete', 'domainname' => $domainName ) );
151151 $domainOut .= Html::rawElement( 'td', array(), $link );
152152 $domainsOut .= Html::rawElement( 'tr', array(), $domainOut );
@@ -171,7 +171,7 @@
172172 $this->getOutput()->addWikiMsg( 'openstackmanager-createddomain' );
173173
174174 $out = '<br />';
175 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
 175+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
176176 $this->getOutput()->addHTML( $out );
177177
178178 return true;
@@ -191,7 +191,7 @@
192192 }
193193
194194 $out = '<br />';
195 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
 195+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
196196 $this->getOutput()->addHTML( $out );
197197
198198 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaVolume.php
@@ -339,7 +339,7 @@
340340 $volumeId = $volume->getVolumeId();
341341 $volumeId = htmlentities( $volumeId );
342342 $title = Title::newFromText( $volumeId, NS_NOVA_RESOURCE );
343 - $volumeIdLink = Linker::( $title, $volumeId );
 343+ $volumeIdLink = Linker::link( $title, $volumeId );
344344 $volumeOut .= Html::rawElement( 'td', array(), $volumeIdLink );
345345 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeDescription() );
346346 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeStatus() );
@@ -351,24 +351,24 @@
352352 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeAvailabilityZone() );
353353 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeCreationTime() );
354354 $msg = wfMsgHtml( 'openstackmanager-delete' );
355 - $link = Linker::( $this->getTitle(), $msg, array(),
 355+ $link = Linker::link( $this->getTitle(), $msg, array(),
356356 array( 'action' => 'delete',
357357 'project' => $project,
358358 'volumeid' => $volume->getVolumeId() ) );
359359 $actions = Html::rawElement( 'li', array(), $link );
360360 #$msg = wfMsgHtml( 'openstackmanager-rename' );
361 - #$actions .= Linker::( $this->getTitle(), $msg, array(),
 361+ #$actions .= Linker::link( $this->getTitle(), $msg, array(),
362362 # array( 'action' => 'rename',
363363 # 'project' => $project,
364364 # 'volumeid' => $volume->getVolumeId() ) );
365365 $msg = wfMsgHtml( 'openstackmanager-attach' );
366 - $link = Linker::( $this->getTitle(), $msg, array(),
 366+ $link = Linker::link( $this->getTitle(), $msg, array(),
367367 array( 'action' => 'attach',
368368 'project' => $project,
369369 'volumeid' => $volume->getVolumeId() ) );
370370 $actions .= Html::rawElement( 'li', array(), $link );
371371 $msg = wfMsgHtml( 'openstackmanager-detach' );
372 - $link = Linker::( $this->getTitle(), $msg, array(),
 372+ $link = Linker::link( $this->getTitle(), $msg, array(),
373373 array( 'action' => 'detach',
374374 'project' => $project,
375375 'volumeid' => $volume->getVolumeId() ) );
@@ -383,7 +383,7 @@
384384 }
385385 foreach ( $userProjects as $project ) {
386386 $out .= Html::element( 'h2', array(), $project );
387 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createvolume' ), array(),
 387+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createvolume' ), array(),
388388 array( 'action' => 'create', 'project' => $project ) );
389389 if ( isset( $projectArr["$project"] ) ) {
390390 $projectOut = $header;
@@ -410,7 +410,7 @@
411411 }
412412
413413 $out = '<br />';
414 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 414+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
415415
416416 $this->getOutput()->addHTML( $out );
417417 return true;
@@ -436,7 +436,7 @@
437437 }
438438
439439 $out = '<br />';
440 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 440+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
441441
442442 $this->getOutput()->addHTML( $out );
443443 return true;
@@ -456,7 +456,7 @@
457457 }
458458
459459 $out = '<br />';
460 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 460+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
461461
462462 $this->getOutput()->addHTML( $out );
463463 return true;
@@ -481,7 +481,7 @@
482482 }
483483
484484 $out = '<br />';
485 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 485+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
486486
487487 $this->getOutput()->addHTML( $out );
488488 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaKey.php
@@ -169,7 +169,7 @@
170170 $out = '';
171171
172172 if ( $wgOpenStackManagerNovaKeypairStorage == 'nova' ) {
173 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
 173+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
174174 $projects = $this->userLDAP->getProjects();
175175 foreach ( $projects as $project ) {
176176 $userCredentials = $this->userLDAP->getCredentials();
@@ -189,7 +189,7 @@
190190 $out .= Html::rawElement( 'table', array( 'id' => 'novakeylist', 'class' => 'wikitable sortable collapsible' ), $projectOut );
191191 }
192192 } elseif ( $wgOpenStackManagerNovaKeypairStorage == 'ldap' ) {
193 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
 193+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
194194 $keypairs = $this->userLDAP->getKeypairs();
195195 $keysOut = '';
196196 $keysOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-keys' ) );
@@ -197,7 +197,7 @@
198198 foreach ( $keypairs as $hash => $key ) {
199199 $keyOut = Html::element( 'td', array( 'class' => 'Nova_col' ), $key );
200200 $msg = wfMsgHtml( 'openstackmanager-delete' );
201 - $link = Linker::( $this->getTitle(), $msg, array(), array( 'action' => 'delete', 'hash' => $hash ) );
 201+ $link = Linker::link( $this->getTitle(), $msg, array(), array( 'action' => 'delete', 'hash' => $hash ) );
202202 $action = Html::rawElement( 'li', array(), $link );
203203 $action = Html::rawElement( 'ul', array(), $action );
204204 $keyOut .= Html::rawElement( 'td', array(), $action );
@@ -238,7 +238,7 @@
239239 }
240240 $out = '<br />';
241241
242 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
 242+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
243243 $this->getOutput()->addHTML( $out );
244244 return true;
245245 }
@@ -257,7 +257,7 @@
258258 }
259259 $out = '<br />';
260260
261 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
 261+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
262262 $this->getOutput()->addHTML( $out );
263263 return true;
264264 }
Index: trunk/extensions/OpenStackManager/special/SpecialNovaPuppetGroup.php
@@ -443,7 +443,7 @@
444444
445445 $out = '';
446446
447 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createpuppetgroup' ), array(), array( 'action' => 'create' ) );
 447+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createpuppetgroup' ), array(), array( 'action' => 'create' ) );
448448 $puppetGroups = OpenStackNovaPuppetGroup::getGroupList();
449449 foreach ( $puppetGroups as $puppetGroup ) {
450450 $puppetGroupId = $puppetGroup->getId();
@@ -451,30 +451,30 @@
452452 $puppetGroupName = $puppetGroup->getName();
453453 $puppetGroupName = "[$puppetGroupPosition] " . htmlentities( $puppetGroupName );
454454 $specialPuppetGroupTitle = Title::newFromText( 'Special:NovaPuppetGroup' );
455 - $modify = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modify', 'puppetgroupid' => $puppetGroupId, 'puppetgroupposition' => $puppetGroupPosition, 'returnto' => 'Special:NovaPuppetGroup' ) );
456 - $delete = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'delete', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 455+ $modify = Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modify', 'puppetgroupid' => $puppetGroupId, 'puppetgroupposition' => $puppetGroupPosition, 'returnto' => 'Special:NovaPuppetGroup' ) );
 456+ $delete = Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'delete', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
457457 $out .= Html::rawElement( 'h2', array(), "$puppetGroupName ($modify, $delete)" );
458458 $out .= Html::element( 'h3', array(), wfMsg( 'openstackmanager-puppetclasses' ) );
459 - $out .= Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetclass' ), array(), array( 'action' => 'addclass', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 459+ $out .= Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetclass' ), array(), array( 'action' => 'addclass', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
460460 $puppetGroupClasses = $puppetGroup->getClasses();
461461 $puppetGroupVars = $puppetGroup->getVars();
462462 if ( $puppetGroupClasses ) {
463463 $classesOut = '';
464464 foreach ( $puppetGroupClasses as $puppetGroupClass ) {
465 - $modify = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyclass', 'puppetclassid' => $puppetGroupClass["id"], 'puppetclassposition' => $puppetGroupClass["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
466 - $delete = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deleteclass', 'puppetclassid' => $puppetGroupClass["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
 465+ $modify = Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyclass', 'puppetclassid' => $puppetGroupClass["id"], 'puppetclassposition' => $puppetGroupClass["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 466+ $delete = Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deleteclass', 'puppetclassid' => $puppetGroupClass["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
467467 $classname = '[' . $puppetGroupClass["position"] . '] ' . htmlentities( $puppetGroupClass["name"] );
468468 $classesOut .= Html::rawElement( 'li', array(), "$classname ($modify, $delete)" );
469469 }
470470 $out .= Html::rawElement( 'ul', array(), $classesOut );
471471 }
472472 $out .= Html::element( 'h3', array(), wfMsg( 'openstackmanager-puppetvars' ) );
473 - $out .= Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetvar' ), array(), array( 'action' => 'addvar', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 473+ $out .= Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetvar' ), array(), array( 'action' => 'addvar', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
474474 if ( $puppetGroupVars ) {
475475 $varsOut = '';
476476 foreach ( $puppetGroupVars as $puppetGroupVar ) {
477 - $modify = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyvar', 'puppetvarid' => $puppetGroupVar["id"], 'puppetvarposition' => $puppetGroupVar["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
478 - $delete = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deletevar', 'puppetvarid' => $puppetGroupVar["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
 477+ $modify = Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyvar', 'puppetvarid' => $puppetGroupVar["id"], 'puppetvarposition' => $puppetGroupVar["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 478+ $delete = Linker::link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deletevar', 'puppetvarid' => $puppetGroupVar["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
479479 $varname = '[' . $puppetGroupVar["position"] . '] ' . htmlentities( $puppetGroupVar["name"] );
480480 $varsOut .= Html::rawElement( 'li', array(), "$varname ($modify, $delete)" );
481481 }
@@ -499,7 +499,7 @@
500500 }
501501
502502 $out = '<br />';
503 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 503+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
504504 $this->getOutput()->addHTML( $out );
505505
506506 return true;
@@ -519,7 +519,7 @@
520520 }
521521
522522 $out = '<br />';
523 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 523+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
524524 $this->getOutput()->addHTML( $out );
525525
526526 return true;
@@ -539,7 +539,7 @@
540540 }
541541
542542 $out = '<br />';
543 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 543+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
544544 $this->getOutput()->addHTML( $out );
545545
546546 return true;
@@ -559,7 +559,7 @@
560560 }
561561 $out = '<br />';
562562
563 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 563+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
564564 $this->getOutput()->addHTML( $out );
565565
566566 return true;
@@ -579,7 +579,7 @@
580580 }
581581
582582 $out = '<br />';
583 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 583+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
584584 $this->getOutput()->addHTML( $out );
585585
586586 return true;
@@ -599,7 +599,7 @@
600600 }
601601 $out = '<br />';
602602
603 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 603+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
604604 $this->getOutput()->addHTML( $out );
605605
606606 return true;
@@ -619,7 +619,7 @@
620620 }
621621 $out = '<br />';
622622
623 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 623+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
624624 $this->getOutput()->addHTML( $out );
625625
626626 return true;
@@ -639,7 +639,7 @@
640640 }
641641 $out = '<br />';
642642
643 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 643+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
644644 $this->getOutput()->addHTML( $out );
645645
646646 return true;
@@ -659,7 +659,7 @@
660660 }
661661 $out = '<br />';
662662
663 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 663+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
664664 $this->getOutput()->addHTML( $out );
665665
666666 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaRole.php
@@ -219,9 +219,9 @@
220220 $memberOut = Html::rawElement( 'ul', array(), $memberOut );
221221 }
222222 $roleOut .= Html::rawElement( 'td', array(), $memberOut );
223 - $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-addrolemember' ), array(), array( 'action' => 'addmember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
 223+ $link = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-addrolemember' ), array(), array( 'action' => 'addmember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
224224 $actions = Html::rawElement( 'li', array(), $link );
225 - $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-removerolemember' ), array(), array( 'action' => 'deletemember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
 225+ $link = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-removerolemember' ), array(), array( 'action' => 'deletemember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
226226 $actions .= Html::rawElement( 'li', array(), $link );
227227 $actions = Html::rawElement( 'ul', array(), $actions );
228228 $roleOut .= Html::rawElement( 'td', array(), $actions );
@@ -268,7 +268,7 @@
269269
270270 $out = '<br />';
271271 $returnto = Title::newFromText( $formData['returnto'] );
272 - $out .= Linker::( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 272+ $out .= Linker::link( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
273273 $this->getOutput()->addHTML( $out );
274274
275275 return true;
@@ -306,7 +306,7 @@
307307
308308 $out = '<br />';
309309 $returnto = Title::newFromText( $formData['returnto'] );
310 - $out .= Linker::( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 310+ $out .= Linker::link( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
311311 $this->getOutput()->addHTML( $out );
312312
313313 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaSudoer.php
@@ -210,7 +210,7 @@
211211
212212 $out = '';
213213
214 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createsudoer' ), array(), array( 'action' => 'create' ) );
 214+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createsudoer' ), array(), array( 'action' => 'create' ) );
215215 $sudoersOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-sudoername' ) );
216216 $sudoersOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-sudoerusers' ) );
217217 $sudoersOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-sudoerhosts' ) );
@@ -250,11 +250,11 @@
251251 $sudoerOptions = Html::rawElement( 'ul', array(), $sudoerOptions );
252252 $sudoerOut .= Html::rawElement( 'td', array(), $sudoerOptions );
253253 $msg = wfMsgHtml( 'openstackmanager-modify' );
254 - $link = Linker::( $this->getTitle(), $msg, array(),
 254+ $link = Linker::link( $this->getTitle(), $msg, array(),
255255 array( 'action' => 'modify', 'sudoername' => $sudoerName ) );
256256 $actions = Html::rawElement( 'li', array(), $link );
257257 $msg = wfMsgHtml( 'openstackmanager-delete' );
258 - $link = Linker::( $this->getTitle(), $msg, array(),
 258+ $link = Linker::link( $this->getTitle(), $msg, array(),
259259 array( 'action' => 'delete', 'sudoername' => $sudoerName ) );
260260 $actions .= Html::rawElement( 'li', array(), $link );
261261 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -302,7 +302,7 @@
303303 $this->getOutput()->addWikiMsg( 'openstackmanager-createdsudoer' );
304304
305305 $out = '<br />';
306 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
 306+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
307307 $this->getOutput()->addHTML( $out );
308308
309309 return true;
@@ -323,7 +323,7 @@
324324 }
325325
326326 $out = '<br />';
327 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
 327+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
328328 $this->getOutput()->addHTML( $out );
329329
330330 return true;
@@ -368,7 +368,7 @@
369369 }
370370
371371 $out = '<br />';
372 - $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
 372+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
373373 $this->getOutput()->addHTML( $out );
374374
375375 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107243Update $sk->link to Linker::linkreedy23:33, 24 December 2011

Status & tagging log