php warnings - fix up more of them to keep err logs empty
This commit is contained in:
parent
946ef22d57
commit
84819f2d57
|
@ -27,8 +27,8 @@ class syntax_plugin_clear extends DokuWiki_Syntax_Plugin {
|
|||
function connectTo($mode) {
|
||||
$this->Lexer->addSpecialPattern('<clear/>',$mode,'plugin_clear');
|
||||
}
|
||||
function handle($match, $state, $pos, $handler){ return array($match, $state, $pos); }
|
||||
function render($mode, $renderer, $data) {
|
||||
function handle($match, $state, $pos, Doku_Handler $handler){ return array($match, $state, $pos); }
|
||||
function render($mode, Doku_Renderer $renderer, $data) {
|
||||
if($mode == 'xhtml'){
|
||||
$renderer->doc .= "<div style='clear:both;'></div>";
|
||||
return true;
|
||||
|
|
|
@ -24,7 +24,7 @@ class action_plugin_gitbacked_editcommit extends DokuWiki_Action_Plugin {
|
|||
io_mkdir_p($this->temp_dir);
|
||||
}
|
||||
|
||||
public function register(Doku_Event_Handler &$controller) {
|
||||
public function register(Doku_Event_Handler $controller) {
|
||||
|
||||
$controller->register_hook('IO_WIKIPAGE_WRITE', 'AFTER', $this, 'handle_io_wikipage_write');
|
||||
$controller->register_hook('MEDIA_UPLOAD_FINISH', 'AFTER', $this, 'handle_media_upload');
|
||||
|
|
|
@ -43,7 +43,7 @@ class syntax_plugin_html5video_video extends DokuWiki_Syntax_Plugin {
|
|||
$this->Lexer->addSpecialPattern('\{\{[^}]*(?:(?:webm)|(?:ogv)|(?:mp4))(?:\|(?:\d{2,4}x\d{2,4})?(?:\|(?:loop)?,?(?:autoplay)?(?:,loop)?)?)? ?\}\}',$mode,'plugin_html5video_video');
|
||||
}
|
||||
|
||||
public function handle($match, $state, $pos, $handler){
|
||||
public function handle($match, $state, $pos, Doku_Handler $handler){
|
||||
$params = substr($match, strlen('{{'), - strlen('}}')); //Strip markup
|
||||
if(strpos($params, ' ') === 0) { // Space as first character
|
||||
if(substr_compare($params, ' ', -1, 1) === 0) { // Space a front and back = centered
|
||||
|
@ -65,7 +65,7 @@ class syntax_plugin_html5video_video extends DokuWiki_Syntax_Plugin {
|
|||
return array(state, explode('|', $params));
|
||||
}
|
||||
|
||||
public function render($mode, $renderer, $data) {
|
||||
public function render($mode, Doku_Renderer $renderer, $data) {
|
||||
if($mode != 'xhtml') return false;
|
||||
|
||||
list($state, $params) = $data;
|
||||
|
|
|
@ -47,7 +47,7 @@ class syntax_plugin_itemtable extends DokuWiki_Syntax_Plugin {
|
|||
/**
|
||||
* Handle the match
|
||||
*/
|
||||
function handle($match, $state, $pos, $handler){
|
||||
function handle($match, $state, $pos, Doku_Handler $handler){
|
||||
switch ($state) {
|
||||
case DOKU_LEXER_ENTER :
|
||||
return array($state, substr($match, 10, -1) );
|
||||
|
@ -177,7 +177,7 @@ class syntax_plugin_itemtable extends DokuWiki_Syntax_Plugin {
|
|||
return $res;
|
||||
}
|
||||
|
||||
function render($mode, $renderer, $data) {
|
||||
function render($mode, Doku_Renderer $renderer, $data) {
|
||||
// This will only render in xhtml
|
||||
if($mode == 'xhtml'){
|
||||
list($state, $match) = $data;
|
||||
|
|
Loading…
Reference in New Issue