Skip to content

Commit

Permalink
Merge pull request SimpleMachines#8476 from Sesquipedalian/3.0/backco…
Browse files Browse the repository at this point in the history
…mpat_files

Points all the empty backward compatibility files to Subs-Compat.php
  • Loading branch information
Sesquipedalian authored Feb 16, 2025
2 parents 8414e04 + 3eedfae commit d646a8c
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Sources/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
die('No direct access...');
}

class_exists('SMF\\Actions\\Feed');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 1 addition & 1 deletion Sources/PersonalMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
die('No direct access...');
}

class_exists('SMF\\Actions\\PersonalMessage');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
5 changes: 1 addition & 4 deletions Sources/Profile-Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
die('No direct access...');
}

class_exists('\\SMF\\Actions\\Profile\\Activate');
class_exists('\\SMF\\Actions\\Profile\\Delete');
class_exists('\\SMF\\Actions\\Profile\\IssueWarning');
class_exists('\\SMF\\Actions\\Profile\\PaidSubs');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
12 changes: 1 addition & 11 deletions Sources/Profile-Modify.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
die('No direct access...');
}

class_exists('\\SMF\\Alert');
class_exists('\\SMF\\Profile');
class_exists('\\SMF\\Actions\\Profile\\Account');
class_exists('\\SMF\\Actions\\Profile\\BuddyIgnoreLists');
class_exists('\\SMF\\Actions\\Profile\\ForumProfile');
class_exists('\\SMF\\Actions\\Profile\\GroupMembership');
class_exists('\\SMF\\Actions\\Profile\\IgnoreBoards');
class_exists('\\SMF\\Actions\\Profile\\Notification');
class_exists('\\SMF\\Actions\\Profile\\TFADisable');
class_exists('\\SMF\\Actions\\Profile\\TFASetup');
class_exists('\\SMF\\Actions\\Profile\\ThemeOptions');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
9 changes: 1 addition & 8 deletions Sources/Profile-View.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
die('No direct access...');
}

class_exists('\\SMF\\Alert');
class_exists('\\SMF\\Actions\\Profile\\ShowAlerts');
class_exists('\\SMF\\Actions\\Profile\\ShowPosts');
class_exists('\\SMF\\Actions\\Profile\\StatPanel');
class_exists('\\SMF\\Actions\\Profile\\Summary');
class_exists('\\SMF\\Actions\\Profile\\Tracking');
class_exists('\\SMF\\Actions\\Profile\\ViewWarning');
class_exists('\\SMF\\Actions\\TrackIP');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
4 changes: 1 addition & 3 deletions Sources/ScheduledTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
die('No direct access...');
}

class_exists('SMF\\Mail');
class_exists('SMF\\TaskRunner');
class_exists('SMF\\Theme');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
4 changes: 1 addition & 3 deletions Sources/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
die('No direct access...');
}

class_exists('SMF\\Actions\\Search');
class_exists('SMF\\Actions\\Search2');
class_exists('SMF\\Actions\\SearchResult');
require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-BoardIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Boards.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Graphics.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-List.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Membergroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Members.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-MembersOnline.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-MessageIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-ReportedContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Sound.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>
2 changes: 2 additions & 0 deletions Sources/Subs-Timezones.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
die('No direct access...');
}

require_once SMF\Config::$sourcedir . '/Subs-Compat.php';

?>

0 comments on commit d646a8c

Please sign in to comment.