Example #1
0
 public function __construct()
 {
     $pathlist = dir::addon('seo', 'pathlist.json');
     if (is_file($pathlist)) {
         self::$pathlist = json_decode(file_get_contents($pathlist), true);
     }
 }
Example #2
0
 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);
         }
     }
 }