Commit Graph

1529 Commits

Author SHA1 Message Date
Sam Minnee
f97fc4ad65 Added ability for SiteTree extensions to define contentcontrollerInit() or modelascontrollerInit(), to add extra behaviour necessary for some modules (in particular, subsites)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40224 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-16 06:27:32 +00:00
Matt Peel
f9b575dff4 Fixed < being on the wrong side of a \n character, causing XHTML errors.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40168 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-15 11:54:11 +00:00
Matt Peel
ae8da10aa9 Fixed some spelling mistakes that were causing errors when running tests via SapphireTest.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40167 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-15 10:17:18 +00:00
Sam Minnee
186e3466af Fixed bug to support tests
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40166 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-15 10:13:27 +00:00
Sam Minnee
f55e0bf547 Added PHPUnit unit testing framework
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40129 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-15 06:38:41 +00:00
Sam Minnee
9b1487c376 Dramatically improved performance of db/build
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40035 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-15 02:50:39 +00:00
Andrew O'Neil
7780205ba9 Check for safe mode before setting time limit
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39899 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-12 23:59:02 +00:00
Andrew O'Neil
9bedeed772 Fix title being included in $MetaTags when it shouldn't be
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39877 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-12 21:51:51 +00:00
Andrew O'Neil
037d77beca Fixed bug introduced by safe mode checks
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39825 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-10 03:19:39 +00:00
Andrew O'Neil
858e877858 Don't show unmoderated comments unless user is admin, add link to accept comment
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39818 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-10 01:29:09 +00:00
Andrew O'Neil
bae1e1757d Hide errors in safe mode
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39799 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-09 22:06:39 +00:00
Andrew O'Neil
eb700a58b7 Create a temporary directory called silverstripe-cache in the project folder if access to the tmp folder is restricted
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39797 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-09 22:03:28 +00:00
Andrew O'Neil
455991f84d Removed pointless semicolon
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39659 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-07 01:20:20 +00:00
Andrew O'Neil
bd84ca66a5 Normal requirements fails quietly when there is no css, so themed requirements should do the same
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39638 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-06 23:24:22 +00:00
Andrew O'Neil
f69d610293 Fixed unique URL segment generation when there is a number in the segment - http://www.silverstripe.com/contributions/flat/3528
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39629 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-06 21:36:01 +00:00
Andrew O'Neil
4560135eb9 FIxed db/build authentification errors, merged from gsoc r39559 and r37162
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39609 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-06 00:47:31 +00:00
Andrew O'Neil
5308e76142 Check for string 'true' as well as boolean in MetaTags
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39532 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-01 21:41:09 +00:00
Kirti Nanji
94fc673f97 DataObject decorator bug fixing - addStaticVars() function.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39284 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-26 21:57:01 +00:00
Andrew O'Neil
4b901e21e6 Don't show classes user doesn't have permissions to change to in class dropdown
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39208 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-24 21:53:56 +00:00
Hayden Smith
b785d359fa Merged in Markus' changes from [37478].
Tidied up the permission checks in SiteTree->can() so they are easier to follow.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39189 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-24 03:43:21 +00:00
Andrew O'Neil
940fc3fc65 Fixed php notice
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39160 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-23 23:00:11 +00:00
Andrew O'Neil
4f6a8736e2 Automatically include form css
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39081 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-20 04:32:58 +00:00
Andrew O'Neil
fccd958077 Move stuff out of Page.php into ContentController so they aren't needed at default install
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39074 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-20 04:05:51 +00:00
Andrew O'Neil
78ee5b5d30 Fixed php warning
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39064 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-20 02:17:40 +00:00
Andrew O'Neil
32995ceadc case changes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39058 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-20 01:43:00 +00:00
Andrew O'Neil
aa5d463b8b Allow themes to have Includes in there templates
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39035 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-19 23:34:42 +00:00
Andrew O'Neil
97ff1db6f9 Fixed some php notices
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39034 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-19 23:15:05 +00:00
Andrew O'Neil
fe2314a08e Add SQL_ prefix in place it was missing. (merge from gsoc branch, r38948)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39013 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-19 21:52:18 +00:00
Hayden Smith
4a5d9b03f8 Moved Sapphire module to open source path
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39001 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-19 10:40:28 +00:00