File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 * Generic Database schema code.
66 */
77
8- require_once dirname ( __FILE__ ) . '/query.inc ' ;
8+ require_once __DIR__ . '/query.inc ' ;
99
1010/**
1111 * @defgroup schemaapi Schema API
Original file line number Diff line number Diff line change 55 * @{
66 */
77
8- require_once dirname ( __FILE__ ) . '/query.inc ' ;
8+ require_once __DIR__ . '/query.inc ' ;
99
1010/**
1111 * Interface for extendable query objects.
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ abstract class FileTransfer {
296296 return FALSE ;
297297 }
298298
299- $ path = dirname ( __FILE__ ) ;
299+ $ path = __DIR__ ;
300300 $ path = $ this ->fixRemotePath ($ path , FALSE );
301301 $ parts = explode ('/ ' , $ path );
302302 $ chroot = '' ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ include_once './includes/bootstrap.inc';
2828drupal_bootstrap (DRUPAL_BOOTSTRAP_FULL );
2929
3030// Include the utility drupal_var_export() function.
31- include_once dirname ( __FILE__ ) . '/../includes/utility.inc ' ;
31+ include_once __DIR__ . '/../includes/utility.inc ' ;
3232
3333// Output the PHP header.
3434$ output = <<<ENDOFHEADER
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ function simpletest_script_init($server_software) {
297297 }
298298 }
299299
300- chdir(realpath(dirname(__FILE__) . ' /..' ));
300+ chdir(realpath(__DIR__ . ' /..' ));
301301 define(' DRUPAL_ROOT' , getcwd ());
302302 require_once DRUPAL_ROOT . ' /includes/bootstrap.inc' ;
303303}
You can’t perform that action at this time.
0 commit comments