r107243 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107242‎ | r107243 | r107244 >
Date:23:33, 24 December 2011
Author:reedy
Status:resolved (Comments)
Tags:
Comment:
Update $sk->link to Linker::link
Modified paths:
  • /trunk/extensions/OpenStackManager/special/SpecialNovaAddress.php (modified) (history)
  • /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
@@ -446,8 +446,7 @@
447447 }
448448 $instanceid = $wgRequest->getText( 'instanceid' );
449449 $consoleOutput = $this->userNova->getConsoleOutput( $instanceid );
450 - $sk = $wgOut->getSkin();
451 - $out = $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 450+ $out = Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
452451 $out .= Html::element( 'pre', array(), $consoleOutput );
453452 $wgOut->addHTML( $out );
454453 }
@@ -462,7 +461,7 @@
463462 $wgOut->setPagetitle( wfMsg( 'openstackmanager-instancelist' ) );
464463
465464 $userProjects = $this->userLDAP->getProjects();
466 - $sk = $wgOut->getSkin();
 465+
467466 $out = '';
468467 $instances = $this->adminNova->getInstances();
469468 $header = Html::element( 'th', array(), wfMsg( 'openstackmanager-instancename' ) );
@@ -486,7 +485,7 @@
487486 $instanceId = $instance->getInstanceId();
488487 $instanceId = htmlentities( $instanceId );
489488 $title = Title::newFromText( $instanceId, NS_NOVA_RESOURCE );
490 - $instanceIdLink = $sk->link( $title, $instanceId );
 489+ $instanceIdLink = Linker::( $title, $instanceId );
491490 $instanceOut .= Html::rawElement( 'td', array(), $instanceIdLink );
492491 $instanceOut .= Html::element( 'td', array(), $instance->getInstanceState() );
493492 $instanceOut .= Html::element( 'td', array(), $instance->getInstanceType() );
@@ -509,25 +508,25 @@
510509 $instanceOut .= Html::element( 'td', array(), $instance->getLaunchTime() );
511510 if ( $this->userLDAP->inRole( 'sysadmin', $project ) ) {
512511 $msg = wfMsgHtml( 'openstackmanager-delete' );
513 - $link = $sk->link( $this->getTitle(), $msg, array(),
 512+ $link = Linker::( $this->getTitle(), $msg, array(),
514513 array( 'action' => 'delete',
515514 'project' => $project,
516515 'instanceid' => $instance->getInstanceId() ) );
517516 $actions = Html::rawElement( 'li', array(), $link );
518517 $msg = wfMsgHtml( 'openstackmanager-reboot' );
519 - $link = $sk->link( $this->getTitle(), $msg, array(),
 518+ $link = Linker::( $this->getTitle(), $msg, array(),
520519 array( 'action' => 'reboot',
521520 'project' => $project,
522521 'instanceid' => $instance->getInstanceId() ) );
523522 $actions .= Html::rawElement( 'li', array(), $link );
524523 $msg = wfMsgHtml( 'openstackmanager-configure' );
525 - $link = $sk->link( $this->getTitle(), $msg, array(),
 524+ $link = Linker::( $this->getTitle(), $msg, array(),
526525 array( 'action' => 'configure',
527526 'project' => $project,
528527 'instanceid' => $instance->getInstanceId() ) );
529528 $actions .= Html::rawElement( 'li', array(), $link );
530529 $msg = wfMsgHtml( 'openstackmanager-getconsoleoutput' );
531 - $link = $sk->link( $this->getTitle(), $msg, array(),
 530+ $link = Linker::( $this->getTitle(), $msg, array(),
532531 array( 'action' => 'consoleoutput',
533532 'project' => $project,
534533 'instanceid' => $instance->getInstanceId() ) );
@@ -544,7 +543,7 @@
545544 foreach ( $userProjects as $project ) {
546545 $out .= Html::element( 'h2', array(), $project );
547546 if ( $this->userLDAP->inRole( 'sysadmin', $project ) ) {
548 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createinstance' ), array(), array( 'action' => 'create', 'project' => $project ) );
 547+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createinstance' ), array(), array( 'action' => 'create', 'project' => $project ) );
549548 }
550549 if ( isset( $projectArr["$project"] ) ) {
551550 $projectOut = $header;
@@ -586,9 +585,9 @@
587586 } else {
588587 $wgOut->addWikiMsg( 'openstackmanager-createinstancefailed' );
589588 }
590 - $sk = $wgOut->getSkin();
 589+
591590 $out = '<br />';
592 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 591+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
593592
594593 $wgOut->addHTML( $out );
595594 return true;
@@ -621,9 +620,9 @@
622621 } else {
623622 $wgOut->addWikiMsg( 'openstackmanager-deleteinstancefailed' );
624623 }
625 - $sk = $wgOut->getSkin();
 624+
626625 $out = '<br />';
627 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 626+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
628627
629628 $wgOut->addHTML( $out );
630629 return true;
@@ -644,9 +643,9 @@
645644 } else {
646645 $wgOut->addWikiMsg( 'openstackmanager-rebootinstancefailed' );
647646 }
648 - $sk = $wgOut->getSkin();
 647+
649648 $out = '<br />';
650 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 649+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
651650
652651 $wgOut->addHTML( $out );
653652 return true;
@@ -673,9 +672,9 @@
674673 } else {
675674 $wgOut->addWikiMsg( 'openstackmanager-nonexistanthost' );
676675 }
677 - $sk = $wgOut->getSkin();
 676+
678677 $out = '<br />';
679 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
 678+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backinstancelist' ) );
680679
681680 $wgOut->addHTML( $out );
682681 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaSecurityGroup.php
@@ -203,7 +203,7 @@
204204 $wgOut->setPagetitle( wfMsg( 'openstackmanager-securitygrouplist' ) );
205205
206206 $userProjects = $this->userLDAP->getProjects();
207 - $sk = $wgOut->getSkin();
 207+
208208 $out = '';
209209 $groupheader = Html::element( 'th', array(), wfMsg( 'openstackmanager-securitygroupname' ) );
210210 $groupheader .= Html::element( 'th', array(), wfMsg( 'openstackmanager-securitygroupdescription' ) );
@@ -270,7 +270,7 @@
271271 'protocol' => $ipprotocol,
272272 'ranges' => implode( ',', $ranges ),
273273 'groups' => implode( ',', $groupinfo ) );
274 - $link = $sk->link( $this->getTitle(), $msg, array(), $args );
 274+ $link = Linker::( $this->getTitle(), $msg, array(), $args );
275275 $actions = Html::rawElement( 'li', array(), $link );
276276 $actions = Html::rawElement( 'ul', array(), $actions );
277277 $ruleOut .= Html::rawElement( 'td', array(), $actions );
@@ -282,19 +282,19 @@
283283 $groupOut .= Html::rawElement( 'td', array(), '' );
284284 }
285285 $msg = wfMsgHtml( 'openstackmanager-delete' );
286 - $link = $sk->link( $this->getTitle(), $msg, array(),
 286+ $link = Linker::( $this->getTitle(), $msg, array(),
287287 array( 'action' => 'delete',
288288 'project' => $project,
289289 'groupname' => $group->getGroupName() ) );
290290 $actions = Html::rawElement( 'li', array(), $link );
291291 #$msg = wfMsgHtml( 'openstackmanager-configure' );
292 - #$link = $sk->link( $this->getTitle(), $msg, array(),
 292+ #$link = Linker::( $this->getTitle(), $msg, array(),
293293 # array( 'action' => 'configure',
294294 # 'project' => $project,
295295 # 'groupname' => $group->getGroupName() ) );
296296 #$actions .= Html::rawElement( 'li', array(), $link );
297297 $msg = wfMsgHtml( 'openstackmanager-addrule-action' );
298 - $link = $sk->link( $this->getTitle(), $msg, array(),
 298+ $link = Linker::( $this->getTitle(), $msg, array(),
299299 array( 'action' => 'addrule',
300300 'project' => $project,
301301 'groupname' => $group->getGroupName() ) );
@@ -309,7 +309,7 @@
310310 }
311311 foreach ( $userProjects as $project ) {
312312 $out .= Html::element( 'h2', array(), $project );
313 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createnewsecuritygroup' ), array(),
 313+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createnewsecuritygroup' ), array(),
314314 array( 'action' => 'create', 'project' => $project ) );
315315 if ( isset( $projectArr["$project"] ) ) {
316316 $projectOut = $groupheader;
@@ -506,9 +506,9 @@
507507 } else {
508508 $wgOut->addWikiMsg( 'openstackmanager-createsecuritygroupfailed' );
509509 }
510 - $sk = $wgOut->getSkin();
 510+
511511 $out = '<br />';
512 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 512+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
513513
514514 $wgOut->addHTML( $out );
515515 return true;
@@ -538,9 +538,9 @@
539539 } else {
540540 $wgOut->addWikiMsg( 'openstackmanager-deletesecuritygroupfailed' );
541541 }
542 - $sk = $wgOut->getSkin();
 542+
543543 $out = '<br />';
544 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 544+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
545545
546546 $wgOut->addHTML( $out );
547547 return true;
@@ -569,9 +569,9 @@
570570 } else {
571571 $wgOut->addWikiMsg( 'openstackmanager-nonexistantgroup' );
572572 }
573 - $sk = $wgOut->getSkin();
 573+
574574 $out = '<br />';
575 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 575+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
576576
577577 $wgOut->addHTML( $out );
578578 return true;
@@ -614,9 +614,9 @@
615615 } else {
616616 $wgOut->addWikiMsg( 'openstackmanager-addrulefailed' );
617617 }
618 - $sk = $wgOut->getSkin();
 618+
619619 $out = '<br />';
620 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 620+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
621621
622622 $wgOut->addHTML( $out );
623623 return true;
@@ -662,9 +662,9 @@
663663 } else {
664664 $wgOut->addWikiMsg( 'openstackmanager-removerulefailed' );
665665 }
666 - $sk = $wgOut->getSkin();
 666+
667667 $out = '<br />';
668 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
 668+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsecuritygrouplist' ) );
669669
670670 $wgOut->addHTML( $out );
671671 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaAddress.php
@@ -364,7 +364,7 @@
365365
366366 $userProjects = $this->userLDAP->getProjects();
367367 $out = '';
368 - $sk = $wgOut->getSkin();
 368+
369369 $header = Html::element( 'th', array(), wfMsg( 'openstackmanager-address' ) );
370370 $header .= Html::element( 'th', array(), wfMsg( 'openstackmanager-instanceid' ) );
371371 $header .= Html::element( 'th', array(), wfMsg( 'openstackmanager-instancename' ) );
@@ -396,7 +396,7 @@
397397 foreach ( $fqdns as $fqdn ) {
398398 $hostname = explode( '.', $fqdn );
399399 $hostname = $hostname[0];
400 - $link = $sk->link( $this->getTitle(), $msg, array(),
 400+ $link = Linker::link( $this->getTitle(), $msg, array(),
401401 array( 'action' => 'removehost', 'ip' => $ip, 'project' => $project, 'domain' => $domain->getDomainName(), 'hostname' => $hostname ) );
402402 $hostOut = htmlentities( $fqdn ) . ' ' . $link;
403403 $hostsOut .= Html::rawElement( 'li', array(), $hostOut );
@@ -412,22 +412,22 @@
413413 $msg = wfMsgHtml( 'openstackmanager-reassociateaddress' );
414414 } else {
415415 $msg = wfMsgHtml( 'openstackmanager-releaseaddress' );
416 - $link = $sk->link( $this->getTitle(), $msg, array(),
 416+ $link = Linker::link( $this->getTitle(), $msg, array(),
417417 array( 'action' => 'release', 'ip' => $ip, 'project' => $project ) );
418418 $actions = Html::rawElement( 'li', array(), $link );
419419 $msg = wfMsgHtml( 'openstackmanager-associateaddress' );
420420 }
421 - $link = $sk->link( $this->getTitle(), $msg, array(),
 421+ $link = Linker::link( $this->getTitle(), $msg, array(),
422422 array( 'action' => 'associate', 'ip' => $ip, 'project' => $project ) );
423423 $actions .= Html::rawElement( 'li', array(), $link );
424424 if ( $instanceid ) {
425425 $msg = wfMsgHtml( 'openstackmanager-disassociateaddress' );
426 - $link = $sk->link( $this->getTitle(), $msg, array(),
 426+ $link = Linker::link( $this->getTitle(), $msg, array(),
427427 array( 'action' => 'disassociate', 'ip' => $ip, 'project' => $project ) );
428428 $actions .= Html::rawElement( 'li', array(), $link );
429429 }
430430 $msg = wfMsgHtml( 'openstackmanager-addhost' );
431 - $link = $sk->link( $this->getTitle(), $msg, array(),
 431+ $link = Linker::link( $this->getTitle(), $msg, array(),
432432 array( 'action' => 'addhost', 'ip' => $ip, 'project' => $project ) );
433433 $actions .= Html::rawElement( 'li', array(), $link );
434434 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -440,7 +440,7 @@
441441 }
442442 foreach ( $userProjects as $project ) {
443443 $out .= Html::element( 'h2', array(), $project );
444 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-allocateaddress' ), array(), array( 'action' => 'allocate', 'project' => $project ) );
 444+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-allocateaddress' ), array(), array( 'action' => 'allocate', 'project' => $project ) );
445445 if ( isset( $projectArr["$project"] ) ) {
446446 $projectOut = $header;
447447 $projectOut .= $projectArr["$project"];
@@ -468,9 +468,8 @@
469469 }
470470 $ip = $address->getPublicIP();
471471 $wgOut->addWikiMsg( 'openstackmanager-allocatedaddress', $ip );
472 - $sk = $wgOut->getSkin();
473472 $out = '<br />';
474 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
 473+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
475474 $wgOut->addHTML( $out );
476475
477476 return true;
@@ -504,9 +503,9 @@
505504 } else {
506505 $wgOut->addWikiMsg( 'openstackmanager-cannotreleaseaddress', $ip );
507506 }
508 - $sk = $wgOut->getSkin();
 507+
509508 $out = '<br />';
510 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
 509+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
511510 $wgOut->addHTML( $out );
512511
513512 return true;
@@ -528,9 +527,9 @@
529528 } else {
530529 $wgOut->addWikiMsg( 'openstackmanager-associatedaddressfailed', $ip, $instanceid );
531530 }
532 - $sk = $wgOut->getSkin();
 531+
533532 $out = '<br />';
534 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
 533+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
535534 $wgOut->addHTML( $out );
536535
537536 return true;
@@ -551,9 +550,9 @@
552551 } else {
553552 $wgOut->addWikiMsg( 'openstackmanager-disassociatedaddressfailed', $ip );
554553 }
555 - $sk = $wgOut->getSkin();
 554+
556555 $out = '<br />';
557 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
 556+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
558557 $wgOut->addHTML( $out );
559558
560559 return true;
@@ -609,9 +608,9 @@
610609 $wgOut->addWikiMsg( 'openstackmanager-addhostfailed', $ip, $hostname );
611610 }
612611 }
613 - $sk = $wgOut->getSkin();
 612+
614613 $out = '<br />';
615 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
 614+ $out .= Linker::link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backaddresslist' ) );
616615 $wgOut->addHTML( $out );
617616 return true;
618617 }
Index: trunk/extensions/OpenStackManager/special/SpecialNovaProject.php
@@ -233,8 +233,8 @@
234234 $wgOut->addModuleStyles( 'ext.openstack' );
235235
236236 $out = '';
237 - $sk = $wgOut->getSkin();
238 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createproject' ), array(), array( 'action' => 'create' ) );
 237+
 238+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createproject' ), array(), array( 'action' => 'create' ) );
239239 $projectsOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-projectname' ) );
240240 $projectsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-members' ) );
241241 $projectsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-roles' ) );
@@ -247,7 +247,7 @@
248248 $projectName = $project->getProjectName();
249249 $projectName = htmlentities( $projectName );
250250 $title = Title::newFromText( $projectName, NS_NOVA_RESOURCE );
251 - $projectNameLink = $sk->link( $title, $projectName );
 251+ $projectNameLink = Linker::( $title, $projectName );
252252 $projectOut = Html::rawElement( 'td', array(), $projectNameLink );
253253 $projectMembers = $project->getMembers();
254254 $memberOut = '';
@@ -270,10 +270,10 @@
271271 }
272272 $roleMembers = Html::rawElement( 'ul', array(), $roleMembers );
273273 $roleOut .= Html::rawElement( 'td', array(), $roleMembers );
274 - $link = $sk->link( $specialRoleTitle, wfMsgHtml( 'openstackmanager-addrolemember' ), array(),
 274+ $link = Linker::( $specialRoleTitle, wfMsgHtml( 'openstackmanager-addrolemember' ), array(),
275275 array( 'action' => 'addmember', 'projectname' => $projectName, 'rolename' => $role->getRoleName(), 'returnto' => 'Special:NovaProject' ) );
276276 $actions = Html::rawElement( 'li', array(), $link );
277 - $link = $sk->link( $specialRoleTitle, wfMsgHtml( 'openstackmanager-removerolemember' ), array(),
 277+ $link = Linker::( $specialRoleTitle, wfMsgHtml( 'openstackmanager-removerolemember' ), array(),
278278 array( 'action' => 'deletemember', 'projectname' => $projectName, 'rolename' => $role->getRoleName(), 'returnto' => 'Special:NovaProject' ) );
279279 $actions .= Html::rawElement( 'li', array(), $link );
280280 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -282,13 +282,13 @@
283283 }
284284 $rolesOut = Html::rawElement( 'table', array( 'class' => 'wikitable sortable collapsible' ), $rolesOut );
285285 $projectOut .= Html::rawElement( 'td', array( 'class' => 'Nova_cell' ), $rolesOut );
286 - $link = $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-deleteproject' ), array(),
 286+ $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-deleteproject' ), array(),
287287 array( 'action' => 'delete', 'projectname' => $projectName ) );
288288 $actions = Html::rawElement( 'li', array(), $link );
289 - $link = $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-addmember' ), array(),
 289+ $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-addmember' ), array(),
290290 array( 'action' => 'addmember', 'projectname' => $projectName ) );
291291 $actions .= Html::rawElement( 'li', array(), $link );
292 - $link = $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-removemember' ), array(),
 292+ $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-removemember' ), array(),
293293 array( 'action' => 'deletemember', 'projectname' => $projectName ) );
294294 $actions .= Html::rawElement( 'li', array(), $link );
295295 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -374,9 +374,9 @@
375375 $this->adminNova->configureConnection();
376376 $project->editArticle();
377377 $wgOut->addWikiMsg( 'openstackmanager-createdproject' );
378 - $sk = $wgOut->getSkin();
 378+
379379 $out = '<br />';
380 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 380+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
381381 $wgOut->addHTML( $out );
382382
383383 return true;
@@ -398,9 +398,9 @@
399399 } else {
400400 $wgOut->addWikiMsg( 'openstackmanager-deleteprojectfailed' );
401401 }
402 - $sk = $wgOut->getSkin();
 402+
403403 $out = '<br />';
404 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 404+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
405405 $wgOut->addHTML( $out );
406406
407407 return true;
@@ -425,9 +425,9 @@
426426 $wgOut->addWikiMsg( 'openstackmanager-failedtoadd', $formData['member'], $formData['projectname'] );
427427 }
428428 }
429 - $sk = $wgOut->getSkin();
 429+
430430 $out = '<br />';
431 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 431+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
432432 $wgOut->addHTML( $out );
433433
434434 return true;
@@ -456,8 +456,8 @@
457457 }
458458 }
459459 $out = '<br />';
460 - $sk = $wgOut->getSkin();
461 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 460+
 461+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backprojectlist' ) );
462462 $wgOut->addHTML( $out );
463463
464464 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaDomain.php
@@ -139,8 +139,8 @@
140140 $wgOut->setPagetitle( wfMsg( 'openstackmanager-domainlist' ) );
141141
142142 $out = '';
143 - $sk = $wgOut->getSkin();
144 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createdomain' ), array(), array( 'action' => 'create' ) );
 143+
 144+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createdomain' ), array(), array( 'action' => 'create' ) );
145145 $domainsOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-domainname' ) );
146146 $domainsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-fqdn' ) );
147147 $domainsOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-location' ) );
@@ -154,7 +154,7 @@
155155 $domainOut .= Html::element( 'td', array(), $fqdn );
156156 $domainOut .= Html::element( 'td', array(), $location );
157157 $msg = wfMsgHtml( 'openstackmanager-delete' );
158 - $link = $sk->link( $this->getTitle(), $msg, array(),
 158+ $link = Linker::( $this->getTitle(), $msg, array(),
159159 array( 'action' => 'delete', 'domainname' => $domainName ) );
160160 $domainOut .= Html::rawElement( 'td', array(), $link );
161161 $domainsOut .= Html::rawElement( 'tr', array(), $domainOut );
@@ -180,9 +180,9 @@
181181 return true;
182182 }
183183 $wgOut->addWikiMsg( 'openstackmanager-createddomain' );
184 - $sk = $wgOut->getSkin();
 184+
185185 $out = '<br />';
186 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
 186+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
187187 $wgOut->addHTML( $out );
188188
189189 return true;
@@ -202,9 +202,9 @@
203203 } else {
204204 $wgOut->addWikiMsg( 'openstackmanager-failedeleteddomain' );
205205 }
206 - $sk = $wgOut->getSkin();
 206+
207207 $out = '<br />';
208 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
 208+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backdomainlist' ) );
209209 $wgOut->addHTML( $out );
210210
211211 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaVolume.php
@@ -319,7 +319,7 @@
320320 $wgOut->setPagetitle( wfMsg( 'openstackmanager-volumelist' ) );
321321
322322 $userProjects = $this->userLDAP->getProjects();
323 - $sk = $wgOut->getSkin();
 323+
324324 $out = '';
325325 $volumes = $this->adminNova->getVolumes();
326326 $header = Html::element( 'th', array(), wfMsg( 'openstackmanager-volumename' ) );
@@ -344,7 +344,7 @@
345345 $volumeId = $volume->getVolumeId();
346346 $volumeId = htmlentities( $volumeId );
347347 $title = Title::newFromText( $volumeId, NS_NOVA_RESOURCE );
348 - $volumeIdLink = $sk->link( $title, $volumeId );
 348+ $volumeIdLink = Linker::( $title, $volumeId );
349349 $volumeOut .= Html::rawElement( 'td', array(), $volumeIdLink );
350350 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeDescription() );
351351 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeStatus() );
@@ -356,24 +356,24 @@
357357 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeAvailabilityZone() );
358358 $volumeOut .= Html::element( 'td', array(), $volume->getVolumeCreationTime() );
359359 $msg = wfMsgHtml( 'openstackmanager-delete' );
360 - $link = $sk->link( $this->getTitle(), $msg, array(),
 360+ $link = Linker::( $this->getTitle(), $msg, array(),
361361 array( 'action' => 'delete',
362362 'project' => $project,
363363 'volumeid' => $volume->getVolumeId() ) );
364364 $actions = Html::rawElement( 'li', array(), $link );
365365 #$msg = wfMsgHtml( 'openstackmanager-rename' );
366 - #$actions .= $sk->link( $this->getTitle(), $msg, array(),
 366+ #$actions .= Linker::( $this->getTitle(), $msg, array(),
367367 # array( 'action' => 'rename',
368368 # 'project' => $project,
369369 # 'volumeid' => $volume->getVolumeId() ) );
370370 $msg = wfMsgHtml( 'openstackmanager-attach' );
371 - $link = $sk->link( $this->getTitle(), $msg, array(),
 371+ $link = Linker::( $this->getTitle(), $msg, array(),
372372 array( 'action' => 'attach',
373373 'project' => $project,
374374 'volumeid' => $volume->getVolumeId() ) );
375375 $actions .= Html::rawElement( 'li', array(), $link );
376376 $msg = wfMsgHtml( 'openstackmanager-detach' );
377 - $link = $sk->link( $this->getTitle(), $msg, array(),
 377+ $link = Linker::( $this->getTitle(), $msg, array(),
378378 array( 'action' => 'detach',
379379 'project' => $project,
380380 'volumeid' => $volume->getVolumeId() ) );
@@ -388,7 +388,7 @@
389389 }
390390 foreach ( $userProjects as $project ) {
391391 $out .= Html::element( 'h2', array(), $project );
392 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createvolume' ), array(),
 392+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createvolume' ), array(),
393393 array( 'action' => 'create', 'project' => $project ) );
394394 if ( isset( $projectArr["$project"] ) ) {
395395 $projectOut = $header;
@@ -415,9 +415,9 @@
416416 } else {
417417 $wgOut->addWikiMsg( 'openstackmanager-createevolumefailed' );
418418 }
419 - $sk = $wgOut->getSkin();
 419+
420420 $out = '<br />';
421 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 421+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
422422
423423 $wgOut->addHTML( $out );
424424 return true;
@@ -443,9 +443,9 @@
444444 } else {
445445 $wgOut->addWikiMsg( 'openstackmanager-deletevolumefailed' );
446446 }
447 - $sk = $wgOut->getSkin();
 447+
448448 $out = '<br />';
449 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 449+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
450450
451451 $wgOut->addHTML( $out );
452452 return true;
@@ -465,9 +465,9 @@
466466 } else {
467467 $wgOut->addWikiMsg( 'openstackmanager-attachvolumefailed' );
468468 }
469 - $sk = $wgOut->getSkin();
 469+
470470 $out = '<br />';
471 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 471+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
472472
473473 $wgOut->addHTML( $out );
474474 return true;
@@ -492,9 +492,9 @@
493493 } else {
494494 $wgOut->addWikiMsg( 'openstackmanager-detachvolumefailed' );
495495 }
496 - $sk = $wgOut->getSkin();
 496+
497497 $out = '<br />';
498 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
 498+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backvolumelist' ) );
499499
500500 $wgOut->addHTML( $out );
501501 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaKey.php
@@ -170,9 +170,9 @@
171171 $wgOut->addModuleStyles( 'ext.openstack' );
172172
173173 $out = '';
174 - $sk = $wgOut->getSkin();
 174+
175175 if ( $wgOpenStackManagerNovaKeypairStorage == 'nova' ) {
176 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
 176+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
177177 $projects = $this->userLDAP->getProjects();
178178 foreach ( $projects as $project ) {
179179 $userCredentials = $this->userLDAP->getCredentials();
@@ -192,7 +192,7 @@
193193 $out .= Html::rawElement( 'table', array( 'id' => 'novakeylist', 'class' => 'wikitable sortable collapsible' ), $projectOut );
194194 }
195195 } elseif ( $wgOpenStackManagerNovaKeypairStorage == 'ldap' ) {
196 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
 196+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
197197 $keypairs = $this->userLDAP->getKeypairs();
198198 $keysOut = '';
199199 $keysOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-keys' ) );
@@ -200,7 +200,7 @@
201201 foreach ( $keypairs as $hash => $key ) {
202202 $keyOut = Html::element( 'td', array( 'class' => 'Nova_col' ), $key );
203203 $msg = wfMsgHtml( 'openstackmanager-delete' );
204 - $link = $sk->link( $this->getTitle(), $msg, array(), array( 'action' => 'delete', 'hash' => $hash ) );
 204+ $link = Linker::( $this->getTitle(), $msg, array(), array( 'action' => 'delete', 'hash' => $hash ) );
205205 $action = Html::rawElement( 'li', array(), $link );
206206 $action = Html::rawElement( 'ul', array(), $action );
207207 $keyOut .= Html::rawElement( 'td', array(), $action );
@@ -241,8 +241,8 @@
242242 $wgOut->addWikiMsg( 'openstackmanager-invalidkeypair' );
243243 }
244244 $out = '<br />';
245 - $sk = $wgOut->getSkin();
246 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
 245+
 246+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
247247 $wgOut->addHTML( $out );
248248 return true;
249249 }
@@ -262,8 +262,8 @@
263263 $wgOut->addWikiMsg( 'openstackmanager-deletedkeyfailed' );
264264 }
265265 $out = '<br />';
266 - $sk = $wgOut->getSkin();
267 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
 266+
 267+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backkeylist' ) );
268268 $wgOut->addHTML( $out );
269269 return true;
270270 }
Index: trunk/extensions/OpenStackManager/special/SpecialNovaPuppetGroup.php
@@ -456,8 +456,8 @@
457457 $wgOut->addModuleStyles( 'ext.openstack' );
458458
459459 $out = '';
460 - $sk = $wgOut->getSkin();
461 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createpuppetgroup' ), array(), array( 'action' => 'create' ) );
 460+
 461+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createpuppetgroup' ), array(), array( 'action' => 'create' ) );
462462 $puppetGroups = OpenStackNovaPuppetGroup::getGroupList();
463463 foreach ( $puppetGroups as $puppetGroup ) {
464464 $puppetGroupId = $puppetGroup->getId();
@@ -465,30 +465,30 @@
466466 $puppetGroupName = $puppetGroup->getName();
467467 $puppetGroupName = "[$puppetGroupPosition] " . htmlentities( $puppetGroupName );
468468 $specialPuppetGroupTitle = Title::newFromText( 'Special:NovaPuppetGroup' );
469 - $modify = $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modify', 'puppetgroupid' => $puppetGroupId, 'puppetgroupposition' => $puppetGroupPosition, 'returnto' => 'Special:NovaPuppetGroup' ) );
470 - $delete = $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'delete', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 469+ $modify = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modify', 'puppetgroupid' => $puppetGroupId, 'puppetgroupposition' => $puppetGroupPosition, 'returnto' => 'Special:NovaPuppetGroup' ) );
 470+ $delete = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'delete', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
471471 $out .= Html::rawElement( 'h2', array(), "$puppetGroupName ($modify, $delete)" );
472472 $out .= Html::element( 'h3', array(), wfMsg( 'openstackmanager-puppetclasses' ) );
473 - $out .= $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetclass' ), array(), array( 'action' => 'addclass', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 473+ $out .= Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetclass' ), array(), array( 'action' => 'addclass', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
474474 $puppetGroupClasses = $puppetGroup->getClasses();
475475 $puppetGroupVars = $puppetGroup->getVars();
476476 if ( $puppetGroupClasses ) {
477477 $classesOut = '';
478478 foreach ( $puppetGroupClasses as $puppetGroupClass ) {
479 - $modify = $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyclass', 'puppetclassid' => $puppetGroupClass["id"], 'puppetclassposition' => $puppetGroupClass["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
480 - $delete = $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deleteclass', 'puppetclassid' => $puppetGroupClass["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
 479+ $modify = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyclass', 'puppetclassid' => $puppetGroupClass["id"], 'puppetclassposition' => $puppetGroupClass["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 480+ $delete = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deleteclass', 'puppetclassid' => $puppetGroupClass["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
481481 $classname = '[' . $puppetGroupClass["position"] . '] ' . htmlentities( $puppetGroupClass["name"] );
482482 $classesOut .= Html::rawElement( 'li', array(), "$classname ($modify, $delete)" );
483483 }
484484 $out .= Html::rawElement( 'ul', array(), $classesOut );
485485 }
486486 $out .= Html::element( 'h3', array(), wfMsg( 'openstackmanager-puppetvars' ) );
487 - $out .= $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetvar' ), array(), array( 'action' => 'addvar', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 487+ $out .= Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-addpuppetvar' ), array(), array( 'action' => 'addvar', 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
488488 if ( $puppetGroupVars ) {
489489 $varsOut = '';
490490 foreach ( $puppetGroupVars as $puppetGroupVar ) {
491 - $modify = $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyvar', 'puppetvarid' => $puppetGroupVar["id"], 'puppetvarposition' => $puppetGroupVar["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
492 - $delete = $sk->link( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deletevar', 'puppetvarid' => $puppetGroupVar["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
 491+ $modify = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-modify' ), array(), array( 'action' => 'modifyvar', 'puppetvarid' => $puppetGroupVar["id"], 'puppetvarposition' => $puppetGroupVar["position"], 'puppetgroupid' => $puppetGroupId, 'returnto' => 'Special:NovaPuppetGroup' ) );
 492+ $delete = Linker::( $specialPuppetGroupTitle, wfMsgHtml( 'openstackmanager-delete' ), array(), array( 'action' => 'deletevar', 'puppetvarid' => $puppetGroupVar["id"], 'returnto' => 'Special:NovaPuppetGroup' ) );
493493 $varname = '[' . $puppetGroupVar["position"] . '] ' . htmlentities( $puppetGroupVar["name"] );
494494 $varsOut .= Html::rawElement( 'li', array(), "$varname ($modify, $delete)" );
495495 }
@@ -513,9 +513,9 @@
514514 } else {
515515 $wgOut->addWikiMsg( 'openstackmanager-createpuppetgroupfailed' );
516516 }
517 - $sk = $wgOut->getSkin();
 517+
518518 $out = '<br />';
519 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 519+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
520520 $wgOut->addHTML( $out );
521521
522522 return true;
@@ -535,9 +535,9 @@
536536 } else {
537537 $wgOut->addWikiMsg( 'openstackmanager-deletepuppetgroupfailed' );
538538 }
539 - $sk = $wgOut->getSkin();
 539+
540540 $out = '<br />';
541 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 541+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
542542 $wgOut->addHTML( $out );
543543
544544 return true;
@@ -557,9 +557,9 @@
558558 } else {
559559 $wgOut->addWikiMsg( 'openstackmanager-failedtoaddpuppetclass' );
560560 }
561 - $sk = $wgOut->getSkin();
 561+
562562 $out = '<br />';
563 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 563+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
564564 $wgOut->addHTML( $out );
565565
566566 return true;
@@ -580,8 +580,8 @@
581581 $wgOut->addWikiMsg( 'openstackmanager-failedtodeletepuppetclass' );
582582 }
583583 $out = '<br />';
584 - $sk = $wgOut->getSkin();
585 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 584+
 585+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
586586 $wgOut->addHTML( $out );
587587
588588 return true;
@@ -601,9 +601,9 @@
602602 } else {
603603 $wgOut->addWikiMsg( 'openstackmanager-failedtoaddpuppetvar' );
604604 }
605 - $sk = $wgOut->getSkin();
 605+
606606 $out = '<br />';
607 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 607+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
608608 $wgOut->addHTML( $out );
609609
610610 return true;
@@ -624,8 +624,8 @@
625625 $wgOut->addWikiMsg( 'openstackmanager-failedtodeletepuppetvar' );
626626 }
627627 $out = '<br />';
628 - $sk = $wgOut->getSkin();
629 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 628+
 629+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
630630 $wgOut->addHTML( $out );
631631
632632 return true;
@@ -646,8 +646,8 @@
647647 $wgOut->addWikiMsg( 'openstackmanager-failedtomodifypuppetclass' );
648648 }
649649 $out = '<br />';
650 - $sk = $wgOut->getSkin();
651 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 650+
 651+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
652652 $wgOut->addHTML( $out );
653653
654654 return true;
@@ -668,8 +668,8 @@
669669 $wgOut->addWikiMsg( 'openstackmanager-failedtomodifypuppetvar' );
670670 }
671671 $out = '<br />';
672 - $sk = $wgOut->getSkin();
673 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 672+
 673+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
674674 $wgOut->addHTML( $out );
675675
676676 return true;
@@ -690,8 +690,8 @@
691691 $wgOut->addWikiMsg( 'openstackmanager-failedtomodifypuppetgroup' );
692692 }
693693 $out = '<br />';
694 - $sk = $wgOut->getSkin();
695 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
 694+
 695+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backpuppetgrouplist' ) );
696696 $wgOut->addHTML( $out );
697697
698698 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaRole.php
@@ -205,7 +205,7 @@
206206 $wgOut->setPagetitle( wfMsg( 'openstackmanager-rolelist' ) );
207207
208208 $out = '';
209 - $sk = $wgOut->getSkin();
 209+
210210 $rolesOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-rolename' ) );
211211 $rolesOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-members' ) );
212212 $rolesOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-actions' ) );
@@ -225,9 +225,9 @@
226226 $memberOut = Html::rawElement( 'ul', array(), $memberOut );
227227 }
228228 $roleOut .= Html::rawElement( 'td', array(), $memberOut );
229 - $link = $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-addrolemember' ), array(), array( 'action' => 'addmember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
 229+ $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-addrolemember' ), array(), array( 'action' => 'addmember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
230230 $actions = Html::rawElement( 'li', array(), $link );
231 - $link = $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-removerolemember' ), array(), array( 'action' => 'deletemember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
 231+ $link = Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-removerolemember' ), array(), array( 'action' => 'deletemember', 'rolename' => $roleName, 'returnto' => 'Special:NovaRole' ) );
232232 $actions .= Html::rawElement( 'li', array(), $link );
233233 $actions = Html::rawElement( 'ul', array(), $actions );
234234 $roleOut .= Html::rawElement( 'td', array(), $actions );
@@ -273,10 +273,10 @@
274274 $wgOut->addWikiMsg( 'openstackmanager-failedtoadd', $member, $formData['rolename'] );
275275 }
276276 }
277 - $sk = $wgOut->getSkin();
 277+
278278 $out = '<br />';
279279 $returnto = Title::newFromText( $formData['returnto'] );
280 - $out .= $sk->link( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 280+ $out .= Linker::( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
281281 $wgOut->addHTML( $out );
282282
283283 return true;
@@ -313,10 +313,10 @@
314314 $wgOut->addWikiMsg( 'openstackmanager-failedtoremove', $member, $formData['rolename'] );
315315 }
316316 }
317 - $sk = $wgOut->getSkin();
 317+
318318 $out = '<br />';
319319 $returnto = Title::newFromText( $formData['returnto'] );
320 - $out .= $sk->link( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
 320+ $out .= Linker::( $returnto, wfMsgHtml( 'openstackmanager-backprojectlist' ) );
321321 $wgOut->addHTML( $out );
322322
323323 return true;
Index: trunk/extensions/OpenStackManager/special/SpecialNovaSudoer.php
@@ -215,8 +215,8 @@
216216 $wgOut->setPagetitle( wfMsg( 'openstackmanager-sudoerlist' ) );
217217
218218 $out = '';
219 - $sk = $wgOut->getSkin();
220 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-createsudoer' ), array(), array( 'action' => 'create' ) );
 219+
 220+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-createsudoer' ), array(), array( 'action' => 'create' ) );
221221 $sudoersOut = Html::element( 'th', array(), wfMsg( 'openstackmanager-sudoername' ) );
222222 $sudoersOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-sudoerusers' ) );
223223 $sudoersOut .= Html::element( 'th', array(), wfMsg( 'openstackmanager-sudoerhosts' ) );
@@ -256,11 +256,11 @@
257257 $sudoerOptions = Html::rawElement( 'ul', array(), $sudoerOptions );
258258 $sudoerOut .= Html::rawElement( 'td', array(), $sudoerOptions );
259259 $msg = wfMsgHtml( 'openstackmanager-modify' );
260 - $link = $sk->link( $this->getTitle(), $msg, array(),
 260+ $link = Linker::( $this->getTitle(), $msg, array(),
261261 array( 'action' => 'modify', 'sudoername' => $sudoerName ) );
262262 $actions = Html::rawElement( 'li', array(), $link );
263263 $msg = wfMsgHtml( 'openstackmanager-delete' );
264 - $link = $sk->link( $this->getTitle(), $msg, array(),
 264+ $link = Linker::( $this->getTitle(), $msg, array(),
265265 array( 'action' => 'delete', 'sudoername' => $sudoerName ) );
266266 $actions .= Html::rawElement( 'li', array(), $link );
267267 $actions = Html::rawElement( 'ul', array(), $actions );
@@ -308,9 +308,9 @@
309309 return true;
310310 }
311311 $wgOut->addWikiMsg( 'openstackmanager-createdsudoer' );
312 - $sk = $wgOut->getSkin();
 312+
313313 $out = '<br />';
314 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
 314+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
315315 $wgOut->addHTML( $out );
316316
317317 return true;
@@ -330,9 +330,9 @@
331331 } else {
332332 $wgOut->addWikiMsg( 'openstackmanager-failedeletedsudoer' );
333333 }
334 - $sk = $wgOut->getSkin();
 334+
335335 $out = '<br />';
336 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
 336+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
337337 $wgOut->addHTML( $out );
338338
339339 return true;
@@ -377,9 +377,9 @@
378378 } else {
379379 $wgOut->addWikiMsg( 'openstackmanager-nonexistantsudoer' );
380380 }
381 - $sk = $wgOut->getSkin();
 381+
382382 $out = '<br />';
383 - $out .= $sk->link( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
 383+ $out .= Linker::( $this->getTitle(), wfMsgHtml( 'openstackmanager-backsudoerlist' ) );
384384 $wgOut->addHTML( $out );
385385
386386 return true;

Follow-up revisions

RevisionCommit summaryAuthorDate
r107252Add missing method callreedy00:19, 25 December 2011

Comments

#Comment by Nikerabbit (talk | contribs)   11:27, 25 December 2011

Lots of Linker::( )

#Comment by Nikerabbit (talk | contribs)   11:37, 25 December 2011

Apparently not all instances resolved yet. See r107250.

#Comment by Reedy (talk | contribs)   14:47, 25 December 2011

Should all have been fixed, as it broke the lint testing on Jenkins

Spawned a new test just now at http://integration.mediawiki.org/ci/job/MediaWiki-lint/86/

Status & tagging log