pkp / staticpages Goto Github PK
View Code? Open in Web Editor NEWPlugin permitting the creation of static pages like a CMS (OJS 3.0+ and OMP 1.1.1+)
License: GNU General Public License v3.0
Plugin permitting the creation of static pages like a CMS (OJS 3.0+ and OMP 1.1.1+)
License: GNU General Public License v3.0
Hey,
in the StaticPageForm there seems to be a unnecessary code duplication in the fetch method.
On the lines 80 - 87 smarty variables get assigned when $request->getContext(); is not falsy.
On the lines 89 - 96 the same things happen.
Is there a reason for the second time of setting the variables?
Currently static pages must be associated with a specific context. Permit site-wide (context_id=0) static pages, and ensure that they can be administered through the Site Administrator's tools.
As foreign keys have been added to the initial migration, existing tables need to be upgraded as well.
Notice the solution will need to handle the cleanup of orphaned data (invalid context_id
and static_page_id
).
Ideas:
There are useless constructors:
staticPages/controllers/grid/StaticPageGridCellProvider.inc.php
Lines 20 to 25 in 42cfa1a
See:
staticPages/controllers/grid/form/StaticPageForm.inc.php
Lines 29 to 35 in 42cfa1a
and
staticPages/controllers/grid/form/StaticPageForm.inc.php
Lines 101 to 104 in 42cfa1a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.