]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/commit
Generalized "ActionPages". To get LikePage for SomePage, now,
authordairiki <dairiki@96ab9672-09ca-45d6-a79d-3d69d39ca109>
Mon, 28 Jan 2002 01:01:27 +0000 (01:01 +0000)
committerdairiki <dairiki@96ab9672-09ca-45d6-a79d-3d69d39ca109>
Mon, 28 Jan 2002 01:01:27 +0000 (01:01 +0000)
commitdbdedf57e37da2ab42b49c4dccb9131a4fb29041
treefb1bc3cd76cd41ecdfb3269e4462be69142093a1
parent95f6a43fe78638dfa81839d3f4b9c295472fa01b
Generalized "ActionPages".  To get LikePage for SomePage, now,
instead of:
  index.php/LikePages?page=SomePage
you should do:
  index.php/SomePage?action=LikePages

The net result is basically the same except, the action buttons on
the resulting page will apply to SomePage rather than LikePages.
(This is probably what the user wants.  If someone is viewing the
LikePages for SomePage, and hits the BackLinks button, he's
probably in search of the BackLinks for SomePage, not the
BackLinks for LikePages.)

Also this eliminates the need for ButtonFactory::make*ActionPageButton.

Since there wasn't much left of ButtonFactory after this change,
I moved what was left into class Theme.  Which is where it
probably belongs.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1651 96ab9672-09ca-45d6-a79d-3d69d39ca109
19 files changed:
lib/ButtonFactory.php [deleted file]
lib/Template.php
lib/Theme.php
lib/display.php
lib/main.php
lib/plugin/BackLinks.php
lib/plugin/LikePages.php
lib/plugin/PageHistory.php
lib/plugin/_BackendInfo.php
themes/MacOSX/templates/actionbar.tmpl
themes/Portland/templates/actionbar.tmpl
themes/Portland/templates/editpage.tmpl
themes/Portland/templates/navbar.tmpl
themes/Portland/templates/viewsource.tmpl
themes/default/templates/actionbar.tmpl
themes/default/templates/browse.tmpl
themes/default/templates/editpage.tmpl
themes/default/templates/navbar.tmpl
themes/default/templates/viewsource.tmpl