page: replace global variables by $Page object
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 3 Dec 2020 19:59:58 +0000 (20:59 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 19 Dec 2020 02:01:43 +0000 (03:01 +0100)
commit772961fd4e9be46ad340cad1e55ee5f28cc5b968
tree3f53548dc990dabd85d67f576142e1c7423c420e
parentbb34842b36ded0bbe7e6f51294ad3d20c8d470da
page: replace global variables by $Page object

Former $Article is sufficient to provide all derived values:

$Page       = $Page->handler
$Args       = $Page->path
$PageAccess = $Page->restricted
$Article    = $Page

Swap with more appropriate (and short) $Page name and replace any usage.
Major incompatible cleanup before other upcoming behavioural changes.
28 files changed:
article.inc.php
edit/foto/cover/index.php
edit/nieuws/tag/index.php
edit/page/index.php
foto/album.inc.php
foto/index.php
head.inc.php
issue/feed.inc.php
issue/index.php
login/edit/index.php
login/index.php
login/post/index.php
mail/index.php
nieuws/feed/index.php
nieuws/index.php
page.inc.php
page.php
thumb/index.php
widget/countdown.php
widget/doclist.php
widget/linkref.php
widget/login/commits.php
widget/login/list.php
widget/nieuws.php
widget/page.php
widget/reply.php
widget/search.php
widget/sitemap.php