Skip to content

Commit

Permalink
Revert "self to static"
Browse files Browse the repository at this point in the history
This reverts commit dca2b38.
  • Loading branch information
noumo committed May 22, 2015
1 parent 6fcff53 commit 79a2f12
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 = static::find()->with('seo')->sort()->asArray()->all();
$collection = self::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 = static::find()->with('seo')->sort()->asArray()->all();
$collection = self::find()->with('seo')->sort()->asArray()->all();
$flat = [];

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

0 comments on commit 79a2f12

Please sign in to comment.