Changeset 3716


Ignore:
Timestamp:
08/01/09 14:43:19 (11 years ago)
Author:
patdenice
Message:

Allow to add description.txt file in language directory for plugin description.

File:
1 edited

Legend:

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

    r3282 r3716  
    214214            $plugin['uri'] = trim($val[1]); 
    215215          } 
    216           if ( preg_match("|Description: (.*)|", $plg_data, $val) ) 
     216          if ($desc = load_language('description.txt', $path.'/', array('return' => true))) 
     217          { 
     218            $plugin['description'] = trim($desc); 
     219          } 
     220          elseif ( preg_match("|Description: (.*)|", $plg_data, $val) ) 
    217221          { 
    218222            $plugin['description'] = trim($val[1]); 
Note: See TracChangeset for help on using the changeset viewer.