Archived
1
0
Fork 0

Починка для вики

This commit is contained in:
Alexander Yakovlev 2019-08-02 10:56:09 +07:00
parent 886ea58b45
commit 798bfc40b2
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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;