4fd6f93c8230ff9f1a58c43c43c84d18d5412635
Benjamin Renard Initial commit

Benjamin Renard authored 12 years ago

main.php  1) <?php
main.php  2) /**
main.php  3)  * Project infos plugin for ViewGit.
main.php  4)  *
main.php  5)  * This add project infos on summary page.
main.php  6)  *
main.php  7)  * @author Benjamin Renard <brenard@easter-eggs.com>
main.php  8)  */
main.php  9) class ProjectInfosPlugin extends VGPlugin
main.php 10) {
main.php 11) 	function __construct() {
main.php 12) 		$this->register_hook('summary');
main.php 13) 	}
main.php 14) 
main.php 15) 	function hook_summary() {
main.php 16) 		global $page;
main.php 17) 		$page['project_infos']=get_project_info($page['project']);
Benjamin Renard Fixed convertion of non arr...

Benjamin Renard authored 11 years ago

main.php 18) 		if (isset($page['project_infos']['url']) && !is_array($page['project_infos']['url'])) {
main.php 19) 			$page['project_infos']['url']=array($page['project_infos']['url']);