Dotclear


Ignore:
Timestamp:
12/17/12 15:17:30 (13 years ago)
Author:
JcDenis
Branch:
twig
Message:
  • dcPage::open and dcPage::close now use template
File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/plugin.php

    r1070 r1074  
    5959     ob_end_clean(); 
    6060 
     61     # Check context and display 
     62     if ($_ctx->hasPageTitle() && !empty($res)) { 
     63          $has_content = true; 
     64          echo $res; 
     65     } 
    6166//* Keep this for old style plugins using dcPage 
    62      if (!$_ctx->hasPageTitle()) { 
     67     elseif (!$_ctx->hasPageTitle()) { 
    6368           
    6469          if (preg_match('|<head>(.*?)</head|ms',$res,$m)) { 
     
    97102     } 
    98103//*/ 
    99      # Check context and display 
    100      if ($_ctx->hasPageTitle() && !empty($res)) { 
    101           $has_content = true; 
    102           echo $res; 
    103      } 
    104104} 
    105105# No plugin or content found 
Note: See TracChangeset for help on using the changeset viewer.

Sites map