mirror of
https://github.com/getgrav/grav.git
synced 2026-05-29 20:34:14 +02:00
Added optional all param to pages.find()
This commit is contained in:
@@ -1387,11 +1387,11 @@ class Page
|
||||
* @return Page page you were looking for if it exists
|
||||
* @deprecated
|
||||
*/
|
||||
public function find($url)
|
||||
public function find($url, $all=false)
|
||||
{
|
||||
/** @var Pages $pages */
|
||||
$pages = self::$grav['pages'];
|
||||
return $pages->dispatch($url);
|
||||
return $pages->dispatch($url, $all);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user