aboutsummaryrefslogtreecommitdiff
path: root/models/webpage.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 22:17:55 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 22:24:47 +0200
commit39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831 (patch)
treefd0bc682d9730ab722a02e5d9c10dc945fa3cd3f /models/webpage.php
parent6082680e8655efcec0b255047b5b27064bf9fc3f (diff)
downloadnowayforward_human-39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831.tar
nowayforward_human-39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831.tar.gz
nowayforward_human-39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831.zip
feat: Add fromWid, addItem
Diffstat (limited to 'models/webpage.php')
-rw-r--r--models/webpage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/webpage.php b/models/webpage.php
index e6d964f..ceb9cea 100644
--- a/models/webpage.php
+++ b/models/webpage.php
@@ -27,9 +27,9 @@ class Webpage extends Table {
);
}
- static function getPageById(int $id) : Webpage {
+ static function fromDBwid(int $WID) : Webpage {
return Table::_fromDB(
- "SELECT * FROM Webpages WHERE WID = \"$id\"",
+ "SELECT * FROM Webpages WHERE WID = \"$WID\"",
"Database\Webpage"
);
}