Skip to content

Commit

Permalink
require/include are statements not functions; no parentheses are requ…
Browse files Browse the repository at this point in the history
…ired
  • Loading branch information
ruleant committed Aug 21, 2011
1 parent 0c6dbb5 commit e82d3c7
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -69,7 +69,7 @@


// start output
include ('./libraries/header_http.inc.php');
include './libraries/header_http.inc.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
Expand Down
2 changes: 1 addition & 1 deletion libraries/Advisor.class.php
Expand Up @@ -22,7 +22,7 @@ function run() {
PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES', 0, 1)
);
// Add total memory to variables as well
require_once('libraries/sysinfo.lib.php');
require_once 'libraries/sysinfo.lib.php';
$sysinfo = getSysInfo();
$memory = $sysinfo->memory();
$this->variables['system_memory'] = $memory['MemTotal'];
Expand Down
4 changes: 2 additions & 2 deletions libraries/PDF.class.php
Expand Up @@ -77,9 +77,9 @@ function _putpages()
*/
function Error($error_message = '')
{
include('./libraries/header.inc.php');
include './libraries/header.inc.php';
PMA_Message::error(__('Error while creating PDF:') . ' ' . $error_message)->display();
include('./libraries/footer.inc.php');
include './libraries/footer.inc.php';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion libraries/core.lib.php
Expand Up @@ -223,7 +223,7 @@ function PMA_fatalError($error_message, $message_args = null)
$GLOBALS['PMA_Config']->removeCookie($GLOBALS['session_name']);
}

require('./libraries/error.inc.php');
require './libraries/error.inc.php';

if (!defined('TESTSUITE')) {
exit;
Expand Down
2 changes: 1 addition & 1 deletion libraries/display_import_ajax.lib.php
Expand Up @@ -38,7 +38,7 @@

if ($check()) {
$_SESSION[$SESSION_KEY]["handler"] = $plugin;
include_once("import/upload/" . $plugin . ".php");
include_once "import/upload/" . $plugin . ".php";
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/mult_submits.inc.php
Expand Up @@ -47,7 +47,7 @@
break;
case 'export':
unset($submit_mult);
require('db_export.php');
require 'db_export.php';
exit;
break;
} // end switch
Expand Down
2 changes: 1 addition & 1 deletion libraries/schema/User_Schema.class.php
Expand Up @@ -585,7 +585,7 @@ private function _processExportSchema()

PMA_DBI_select_db($db);

include("./libraries/schema/".ucfirst($export_type)."_Relation_Schema.class.php");
include "./libraries/schema/".ucfirst($export_type)."_Relation_Schema.class.php";
$obj_schema = eval("new PMA_".ucfirst($export_type)."_Relation_Schema();");
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/schema/Visio_Relation_Schema.class.php
Expand Up @@ -5,7 +5,7 @@
* @package phpMyAdmin
*/

include_once("Export_Relation_Schema.class.php");
include_once "Export_Relation_Schema.class.php";

/**
* This Class inherits the XMLwriter class and
Expand Down
2 changes: 1 addition & 1 deletion main.php
Expand Up @@ -354,7 +354,7 @@
* The data file is created while creating release by ./scripts/remove-incomplete-mo
*/
if (file_exists('./libraries/language_stats.inc.php')) {
include('./libraries/language_stats.inc.php');
include './libraries/language_stats.inc.php';
/*
* This message is intentionally not translated, because we're
* handling incomplete translations here and focus on english
Expand Down
4 changes: 2 additions & 2 deletions schema_export.php
Expand Up @@ -21,7 +21,7 @@

require_once './libraries/transformations.lib.php';
require_once './libraries/Index.class.php';
include_once("./libraries/schema/Export_Relation_Schema.class.php");
include_once "./libraries/schema/Export_Relation_Schema.class.php";

/**
* get all the export options and verify
Expand All @@ -38,5 +38,5 @@
if (!file_exists('./libraries/schema/' . $path . '_Relation_Schema.class.php')) {
PMA_Export_Relation_Schema::dieSchema($_POST['chpage'],$export_type,__('File doesn\'t exist'));
}
include("./libraries/schema/".$path."_Relation_Schema.class.php");
include "./libraries/schema/".$path."_Relation_Schema.class.php";
$obj_schema = eval("new PMA_".$path."_Relation_Schema();");
6 changes: 3 additions & 3 deletions server_status.php
Expand Up @@ -123,7 +123,7 @@

case 'cpu':
if (!$sysinfo) {
require_once('libraries/sysinfo.lib.php');
require_once 'libraries/sysinfo.lib.php';
$sysinfo = getSysInfo();
}
if (!$cpuload) {
Expand All @@ -140,7 +140,7 @@

case 'memory':
if (!$sysinfo) {
require_once('libraries/sysinfo.lib.php');
require_once 'libraries/sysinfo.lib.php';
$sysinfo = getSysInfo();
}
if (!$memory) {
Expand Down Expand Up @@ -379,7 +379,7 @@
}

if (isset($_REQUEST['advisor'])) {
include('libraries/Advisor.class.php');
include 'libraries/Advisor.class.php';
$advisor = new Advisor();
exit(json_encode($advisor->run()));
}
Expand Down
2 changes: 1 addition & 1 deletion test/selenium/PmaSeleniumLoginTest.php
Expand Up @@ -7,7 +7,7 @@
* @group Selenium
*/

require_once('PmaSeleniumTestCase.php');
require_once 'PmaSeleniumTestCase.php';


class PmaSeleniumLoginTest extends PmaSeleniumTestCase
Expand Down
2 changes: 1 addition & 1 deletion test/selenium/PmaSeleniumPrivilegesTest.php
Expand Up @@ -7,7 +7,7 @@
* @group Selenium
*/

require_once('PmaSeleniumTestCase.php');
require_once 'PmaSeleniumTestCase.php';


class PmaSeleniumPrivilegesTest extends PmaSeleniumTestCase
Expand Down
2 changes: 1 addition & 1 deletion test/selenium/PmaSeleniumXssTest.php
Expand Up @@ -7,7 +7,7 @@
* @group Selenium
*/

require_once('PmaSeleniumTestCase.php');
require_once 'PmaSeleniumTestCase.php';

class PmaSeleniumXSSTest extends PmaSeleniumTestCase
{
Expand Down

0 comments on commit e82d3c7

Please sign in to comment.