From 79a2f12c0369ee22ebe56e092bbc0663fbb0171b Mon Sep 17 00:00:00 2001 From: noumo Date: Fri, 22 May 2015 19:52:07 +0300 Subject: [PATCH] Revert "self to static" This reverts commit dca2b387985324e894dd6cce28a4af2eb9d1c1ab. --- components/CategoryModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/CategoryModel.php b/components/CategoryModel.php index 8993ec3..bd24d58 100644 --- a/components/CategoryModel.php +++ b/components/CategoryModel.php @@ -111,7 +111,7 @@ public static function cats() */ public static function generateTree() { - $collection = static::find()->with('seo')->sort()->asArray()->all(); + $collection = self::find()->with('seo')->sort()->asArray()->all(); $trees = array(); $l = 0; @@ -159,7 +159,7 @@ public static function generateTree() */ public static function generateFlat() { - $collection = static::find()->with('seo')->sort()->asArray()->all(); + $collection = self::find()->with('seo')->sort()->asArray()->all(); $flat = []; if (count($collection) > 0) {