Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
PHPVariableLoader.php
Go to the documentation of this file.
1<?php
20 public static function loadVariableFromPHPFile( $_filename, $_variable ) {
21 if ( !file_exists( $_filename ) ) {
22 return null;
23 } else {
24 require $_filename;
25
26 return $$_variable ?? null;
27 }
28 }
29}
Stuff for handling configuration files in PHP format.
static loadVariableFromPHPFile( $_filename, $_variable)
Returns a global variable from PHP file by executing the file.