public function __construct() { $pathlist = dir::addon('seo', 'pathlist.json'); if (is_file($pathlist)) { self::$pathlist = json_decode(file_get_contents($pathlist), true); } }
public static function loadPathlist() { if (is_null(self::$pathlist)) { $pathlist = dir::addon('seo', 'pathlist.json'); if (is_file($pathlist)) { self::$pathlist = json_decode(file_get_contents($pathlist), true); } } }