Changeset 1726

Show
Ignore:
Timestamp:
04/02/08 20:01:35 (15 months ago)
Author:
bchoate
Message:

Set template identifier variable and system_template for dynamic error and search result templates. BugId:69530

Location:
branches/release-33
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/App/Search.pm

    r1708 r1726  
    523523    return $app->error($app->errstr) 
    524524        unless $tmpl; 
     525 
     526    $ctx->var('system_template', '1'); 
     527    $ctx->var('search_results', '1'); 
    525528 
    526529    $tmpl->context($ctx); 
  • branches/release-33/php/mt.php.pre

    r1717 r1726  
    704704            $ctx->stash('PublishCharset', $this->config('PublishCharset')); 
    705705            $charset = $this->config('PublishCharset'); 
    706             $out = $ctx->tag('Include', array('type' => 'dynamic_error')); 
     706            $out = $ctx->tag('Include', array('type' => 'dynamic_error', 'dynamic_error' => 1, 'system_template' => 1)); 
    707707            if (isset($out)) { 
    708708                header("Content-type: text/html; charset=".$charset); 
     
    718718 
    719719    /*** 
    720      * Retreives a context and rendering object. 
     720     * Retrieves a context and rendering object. 
    721721     */ 
    722722    function &context() {