Skip to content

Commit 76864d4

Browse files
committed
Move s3-page to s3/s3-options-page.php
1 parent 53c476b commit 76864d4

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

flake.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@
3939
let base = baseNameOf path;
4040
in type == "directory" && base == "src"
4141
|| pkgs.lib.hasInfix "/src/" path || type == "directory" && base
42-
== "views" || type == "regular" && pkgs.lib.hasSuffix ".php" base
43-
|| base == "composer.json" || base == "composer.lock";
42+
== "views" || pkgs.lib.hasInfix "/views/" path || type == "regular"
43+
&& pkgs.lib.hasSuffix ".php" base || base == "composer.json"
44+
|| base == "composer.lock";
4445
};
4546
wp2staticSrcDev = pkgs.lib.cleanSourceWith {
4647
src = self;
4748
filter = path: type:
4849
let base = baseNameOf path;
4950
in type == "directory" && base == "src" || type == "directory"
5051
&& base == "tests" || pkgs.lib.hasInfix "/tests/" path || type
51-
== "directory" && base == "views" || type == "regular"
52+
== "directory" && base == "views"
53+
|| pkgs.lib.hasInfix "/views/" path || type == "regular"
5254
&& pkgs.lib.hasSuffix ".php" base || base == "composer.json" || base
5355
== "composer.lock" || base == "phpcs.xml" || base == "phpunit.xml";
5456
};

src/S3/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static function renderS3Page(): void {
7373
is_file( $s3_path ) ?
7474
\WP2Static\SiteInfo::getUrl( 'uploads' ) . 'wp2static-processed-site.s3' : '#';
7575

76-
require_once __DIR__ . '/../views/s3-page.php';
76+
require_once __DIR__ . '/../../views/s3/s3-options-page.php';
7777
}
7878

7979

0 commit comments

Comments
 (0)