Skip to content

Commit ec2bae1

Browse files
committed
Use correct parameter order for startsWith()
1 parent a6be371 commit ec2bae1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

admin-power-tools.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function onTwigExtensions()
170170
{
171171
$twig = $this->grav['twig']->twig;
172172
$twig->addFunction(new \Twig_SimpleFunction('getPages', [$this, 'getPages']));
173-
173+
174174
require_once "services/_nav-up-service.php";
175175
}
176176

@@ -265,7 +265,7 @@ public function onPageNotFound($e)
265265
public function onAdminTaskExecute($e)
266266
{
267267
$method = $e['method'];
268-
if (!Utils::startsWith("task", $method)) {
268+
if (!Utils::startsWith($method, "task")) {
269269
return false;
270270

271271
}

0 commit comments

Comments
 (0)