Merge pull request #2478 from elabuwa/fix/use-static-for-extensibility-in-oldPageRedirector

Change self:: to static:: for better extensibility
This commit is contained in:
Robbie Averill 2019-09-10 17:23:12 -07:00 committed by GitHub
commit ac786d5328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ class OldPageRedirector extends Extension
$getvars = $request->getVars();
unset($getvars['url']);
$page = self::find_old_page($params);
$page = static::find_old_page($params);
$cleanPage = trim(Director::makeRelative($page), '/');
if (!$cleanPage) {
$cleanPage = Director::makeRelative(RootURLController::get_homepage_link());