Subversion Repositories Applications.wikini

Rev

Rev 41 | Rev 45 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 42
Line 109... Line 109...
109
			$this->templateDefaut = $parametres['txt_template'];
109
			$this->templateDefaut = $parametres['txt_template'];
110
		}
110
		}
111
	}
111
	}
Line 112... Line 112...
112
	
112
	
113
	private function consulterPage($page, $section = null) {
-
 
114
		
113
	private function consulterPage($page, $section = null) {
-
 
114
		$this->wiki = Registre::get('wikiApi');
-
 
115
		// La variable globale wiki est déclarée par les wiki et leurs plugins
-
 
116
		// un bug lié à certains plugin impose de la redéclarer et la réaffecter
-
 
117
		global $wiki;
115
		$this->wiki = Registre::get('wikiApi');
118
		$wiki = $this->wiki;
116
		$this->wiki->setPageCourante($this->pageNom);
119
		$this->wiki->setPageCourante($this->pageNom);
117
		$page = $this->wiki->LoadPage($page);
120
		$page = $this->wiki->LoadPage($page);
118
				
121
		
119
		if ($page != null) {
122
		if ($page != null) {
120
			$page["body"] = $this->convertirTexteWikiVersEncodageAppli($page['body']);
123
			$page["body"] = $this->convertirTexteWikiVersEncodageAppli($page['body']);
121
			if($section != null) {
124
			if($section != null) {
122
				$page["body"] = $this->decouperPageSection($page["body"], $section);
125
				$page["body"] = $this->decouperPageSection($page["body"], $section);
123
			}
126
			}
124
		}
-
 
125
	
127
		}	
126
		return $page;
128
		return $page;
Line 127... Line 129...
127
	}
129
	}
128
	
130