phproad / phpr-module-cms

[PHPR Module] Content Management System
4 stars 1 forks source link

Meta files should be cleaned up on rename #2

Closed daftspunk closed 8 years ago

daftspunk commented 11 years ago

When a CMS object filename is renamed (Page, Partial, Template) the old meta file should be deleted.

Currently it creates a new meta file, but fails to clean up the old one.

highruned commented 11 years ago

+1

highruned commented 11 years ago

Also, it doesn't seem like the pages/x/x_page.php is being renamed.

highruned commented 11 years ago

I renamed 'buyers_page' to 'create_project_page' but it was still buyers_page.php, and it would still load that too actually (must be doing a _page.php search? might improve efficiency to require exact name).

daftspunk commented 11 years ago

It looks for anything with the page prefix. Agree this can be made better.