Fix variable case in root files too
This commit is contained in:
parent
663ff8e350
commit
c2f0720118
2 changed files with 14 additions and 14 deletions
|
@ -44,7 +44,7 @@ define( 'C_STR_FOOTNOTES_VERSION', '2.5.6d4' );
|
|||
* Plugin’s main PHP file.
|
||||
*
|
||||
* @filesource
|
||||
* @author Stefan Herndler
|
||||
* @package footnotes
|
||||
* @since 0.0.1
|
||||
*/
|
||||
|
||||
|
@ -53,12 +53,12 @@ require_once( dirname( __FILE__ ) . '/includes.php' );
|
|||
|
||||
// add Plugin Links to the "installed plugins" page
|
||||
$l_str_plugin_file = 'footnotes/footnotes.php';
|
||||
add_filter( "plugin_action_links_{$l_str_plugin_file}", array( 'MCI_Footnotes_Hooks', 'Plugin_links' ), 10, 2 );
|
||||
add_filter( "plugin_action_links_{$l_str_plugin_file}", array( 'MCI_Footnotes_Hooks', 'plugin_links' ), 10, 2 );
|
||||
|
||||
// initialize the Plugin
|
||||
$g_obj_mcI_Footnotes = new MCI_Footnotes();
|
||||
$g_obj_mci_footnotes = new MCI_Footnotes();
|
||||
// run the Plugin
|
||||
$g_obj_mcI_Footnotes->run();
|
||||
$g_obj_mci_footnotes->run();
|
||||
|
||||
/**
|
||||
* Sets the stylesheet enqueuing mode for production.
|
||||
|
|
20
includes.php
20
includes.php
|
@ -3,7 +3,7 @@
|
|||
* Includes all common files.
|
||||
*
|
||||
* @filesource
|
||||
* @author Stefan Herndler
|
||||
* @package footnotes
|
||||
* @since 1.5.0 14.09.14 13:40
|
||||
*/
|
||||
|
||||
|
@ -14,24 +14,24 @@
|
|||
* @since 1.5.0
|
||||
* @param string $p_str_directory Absolute Directory path to lookup for *.php files
|
||||
*/
|
||||
function MCI_Footnotes_require_php_files( $p_str_directory ) {
|
||||
// append slash at the end of the Directory if not exist
|
||||
function mci_footnotes_require_php_files( $p_str_directory ) {
|
||||
// Append slash at the end of the Directory if not exist.
|
||||
if ( substr( $p_str_directory, -1 ) != '/' ) {
|
||||
$p_str_directory .= '/';
|
||||
}
|
||||
// get all PHP files inside Directory
|
||||
// Het all PHP files inside Directory.
|
||||
$l_arr_files = scandir( $p_str_directory );
|
||||
// iterate through each class
|
||||
// Iterate through each class.
|
||||
foreach ( $l_arr_files as $l_str_file_name ) {
|
||||
// skip all non *.php files
|
||||
// Skip all non *.php files.
|
||||
if ( strtolower( substr( $l_str_file_name, -4 ) ) != '.php' ) {
|
||||
continue;
|
||||
}
|
||||
/** @noinspection Php_include_inspection */
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require_once( $p_str_directory . $l_str_file_name );
|
||||
}
|
||||
}
|
||||
|
||||
MCI_Footnotes_require_php_files( dirname( __FILE__ ) . '/class' );
|
||||
MCI_Footnotes_require_php_files( dirname( __FILE__ ) . '/class/dashboard' );
|
||||
MCI_Footnotes_require_php_files( dirname( __FILE__ ) . '/class/widgets' );
|
||||
mci_footnotes_require_php_files( dirname( __FILE__ ) . '/class' );
|
||||
mci_footnotes_require_php_files( dirname( __FILE__ ) . '/class/layout' );
|
||||
mci_footnotes_require_php_files( dirname( __FILE__ ) . '/class/widgets' );
|
||||
|
|
Reference in a new issue