~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to web/wiki/inc/parser/metadata.php

  • Committer: Chad Heuschober
  • Date: 2011-06-06 13:37:45 UTC
  • mfrom: (1.1.1244 trunk)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110606133745-850mdvnjtv392zta
Pulled in most recent batch of changes from the cuny sps trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    if(!$this->persistent['date']['created']){
46
46
        $this->persistent['date']['created'] = filectime(wikiFN($ID));
47
47
    }
 
48
    if(!isset($this->persistent['user'])){
 
49
        $this->persistent['user'] = '';
 
50
    }
48
51
    if(!isset($this->persistent['creator'])){
49
52
        $this->persistent['creator'] = '';
50
53
    }
454
457
    $isImage = false;
455
458
    if (is_null($title)){
456
459
      if (useHeading('content') && $id){
457
 
        $heading = p_get_first_heading($id,false);
 
460
        $heading = p_get_first_heading($id,METADATA_DONT_RENDER);
458
461
        if ($heading) return $heading;
459
462
      }
460
463
      return $default;
461
464
    } else if (is_string($title)){
462
465
      return $title;
463
466
    } else if (is_array($title)){
464
 
      return '['.$title['title'].']';
 
467
      if($title['title']) return '['.$title['title'].']';
465
468
    }
466
469
  }
467
470
 
479
482
  }
480
483
}
481
484
 
482
 
//Setup VIM: ex: et ts=4 enc=utf-8 :
 
485
//Setup VIM: ex: et ts=4 :