Skip to content

Commit

Permalink
Revert "Revert "self to static""
Browse files Browse the repository at this point in the history
This reverts commit 79a2f12.
  • Loading branch information
noumo committed May 22, 2015
1 parent 79a2f12 commit 1828db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/CategoryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static function cats()
*/
public static function generateTree()
{
$collection = self::find()->with('seo')->sort()->asArray()->all();
$collection = static::find()->with('seo')->sort()->asArray()->all();
$trees = array();
$l = 0;

Expand Down Expand Up @@ -159,7 +159,7 @@ public static function generateTree()
*/
public static function generateFlat()
{
$collection = self::find()->with('seo')->sort()->asArray()->all();
$collection = static::find()->with('seo')->sort()->asArray()->all();
$flat = [];

if (count($collection) > 0) {
Expand Down

0 comments on commit 1828db3

Please sign in to comment.