Починка для вики
This commit is contained in:
parent
886ea58b45
commit
798bfc40b2
|
@ -16,6 +16,8 @@
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
namespace Oreolek;
|
||||||
|
|
||||||
use Mediawiki\Api\Service\FileUploader;
|
use Mediawiki\Api\Service\FileUploader;
|
||||||
use Mediawiki\Api\MediawikiApi;
|
use Mediawiki\Api\MediawikiApi;
|
||||||
use Mediawiki\Api\ApiUser;
|
use Mediawiki\Api\ApiUser;
|
||||||
|
|
2
wiki.php
2
wiki.php
|
@ -35,7 +35,7 @@ function check($classname) {
|
||||||
global $game;
|
global $game;
|
||||||
global $url;
|
global $url;
|
||||||
|
|
||||||
$cname = 'Source\\'.$classname;
|
$cname = 'Oreolek\\Source\\'.$classname;
|
||||||
$cl = (new $cname());
|
$cl = (new $cname());
|
||||||
if ($cl->checkPage($url)) {
|
if ($cl->checkPage($url)) {
|
||||||
echo 'Используется правило "'.$cl->title.'".'.PHP_EOL;
|
echo 'Используется правило "'.$cl->title.'".'.PHP_EOL;
|
||||||
|
|
Reference in a new issue