Ignore:
Timestamp:
Jun 9, 2014, 7:20:43 PM (10 years ago)
Author:
mistic100
Message:

feature 3076: Enhance plugin update system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/themes.class.php

    r26998 r28651  
    8787      if (class_exists($classname))
    8888      {
    89         $theme_maintain = new $classname($theme_id);
    90       }
    91       else
    92       {
    93         $theme_maintain = new DummyTheme_maintain($theme_id);
    94       }
    95     }
    96     else
    97     {
    98       $theme_maintain = new DummyTheme_maintain($theme_id);
    99     }
    100 
    101     return $theme_maintain;
     89        return new $classname($theme_id);
     90      }
     91    }
     92   
     93    return new DummyTheme_maintain($theme_id);
    10294  }
    10395
Note: See TracChangeset for help on using the changeset viewer.