function plugin_bugtrack_convert() { global $vars; if (PKWK_READONLY) { return ''; } // Show nothing $base = $vars['page']; $category = array(); if (func_num_args()) { $category = func_get_args(); $_base = get_fullname(strip_bracket(array_shift($category)), $base); if (is_pagename($_base)) { $base = $_base; } } return plugin_bugtrack_print_form($base, $category); }
function plugin_bugtrack_convert() { global $vars; // if (PKWK_READONLY) return ''; // Show nothing if (Auth::check_role('readonly')) { return ''; } // Show nothing if (Auth::is_check_role(PKWK_CREATE_PAGE)) { return ''; } $base = $vars['page']; $category = array(); if (func_num_args()) { $category = func_get_args(); $_base = get_fullname(strip_bracket(array_shift($category)), $base); if (is_pagename($_base)) { $base = $_base; } } return plugin_bugtrack_print_form($base, $category); }